摘要:
1、Code -> 首选项 -> 用户片段 2、填入代码片段文件的名称,然后回车 3、在打开发文件中,写入代码片段的配置,如: { // Place your 全局 snippets here. Each snippet is defined under a snippet name and has 阅读全文
摘要:
对比版本: 判断版本v2是否大于等v1版本,如果大于则返回true,否则返回false 方法1: // comparedVersion('1.23.3', '2.45.3') function comparedVersion (a, b) { if (a == b) { return true; } 阅读全文