This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paths and constants | |
var path = require('path') | |
var SRC_PATH = path.resolve('./src') | |
var DIST_PATH = path.resolve('./build') | |
var OUTPUT_FILENAME = '[name].[chunkhash].js' | |
var DEV_REGEXP = (/(^babel-?.*|.*-plugin$|.*-loader)/) | |
var DOT_ENV_SAMPLE_PATH = path.resolve('./.env.default') | |
var DOT_ENV_PATH = path.resolve('./.env') | |
var pkg = require('./package.json') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let numbers = [4,6,3,8]; | |
let max = Math.max(...numbers); | |
console.log(max); |
替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。
获得 domain_id 可以用 curl
curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`