This file contains hidden or 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or 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
server | |
{ | |
listen 80 default_server; | |
listen 443 ssl http2 default_server; | |
server_name www.luckhunt.cn; | |
index index.php index.html index.htm default.php default.htm default.html; | |
root /www/wwwroot/PlantsGuide/; | |
gzip off; | |
This file contains hidden or 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
function versionCompare(version1, version2) { | |
//提取各个版本号并check | |
let [a1, b1, c1, plus1] = matchVersionNumber(version1) | |
let [a2, b2, c2, plus2] = matchVersionNumber(version2) | |
//乘以数字自动将字符串转型成数字 | |
let result1 = a1 * 10000 * 10000 + b1 * 10000 + c1 * 1; | |
let result2 = a2 * 10000 * 10000 + b2 * 10000 + c2 * 1; | |
if (result1 !== result2) { |