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
Fetch Bing Daily Wallpaper by Node.js & PHP. | |
e.g. https://congm.in/bing.php |
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
{"lastUpload":"2021-08-24T15:16:31.014Z","extensionVersion":"v3.4.3"} |
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
/* JS中精确的四则运算, 修复浮点数运算精度误差 | |
* @ Cong Min - https://github.com/mcc108 | |
*/ | |
// 将参数转换为数字, 并检测参数 | |
const _Number = num => { | |
const number = Number(num); // 转换为数字 | |
if (Number.isNaN(number)) { | |
console.warn(`运算时数字 ${num} 不为合法数值`); | |
} else if (number < Number.MIN_SAFE_INTEGER || number > Number.MAX_SAFE_INTEGER) { |