Переглянути джерело

更新demo json url链接

zxlie 6 роки тому
батько
коміт
49f917ae0b
3 змінених файлів з 3 додано та 3 видалено
  1. 1 1
      apps/json-format/index.html
  2. 1 1
      apps/manifest.json
  3. 1 1
      apps/toolkit/payback/index.js

+ 1 - 1
apps/json-format/index.html

@@ -15,7 +15,7 @@
                         <a href="http://www.baidufe.com/fehelper/feedback.html" target="_blank" class="x-a-high">
                             <img src="../static/img/fe-16.png" alt="fehelper"/> FeHelper</a>:JSON格式化查看
                         <span class="x-xdemo" ref="demoLink1" @click="setDemo">示例1:JSON片段</span>
-                        <a class="x-xdemo" href="http://baike.baidu.com/api/openapi/BaikeLemmaCardApi?scope=103&format=json&appid=379020&bk_key=%E9%93%B6%E9%AD%82&bk_length=600" target="_blank">示例2:在线JSON-1</a>
+                        <a class="x-xdemo" href="https://www.sojson.com/api/qqmusic/8446666/json" target="_blank">示例2:在线JSON-1</a>
 
                         <span id="layoutBar">
                             <button id="btnLeftRight" ref="btnLeftRight" class="selected" @click="changeLayout('left-right')">左右布局</button><button id="btnUpDown" ref="btnUpDown" @click="changeLayout('up-down')">上下布局</button>

+ 1 - 1
apps/manifest.json

@@ -1,6 +1,6 @@
 {
   "name": "WEB前端助手(FeHelper)-Dev",
-  "version": "2019.05.2819",
+  "version": "2019.05.2919",
   "manifest_version": 2,
   "default_locale": "zh_CN",
   "description": "FE助手:JSON格式化、JSON比对、二维码生成与解码、信息编解码、代码压缩&美化、页面取色、Markdown、网页截屏、编码设置、正则、Crontab、时间转换、网页性能检测、密码生成器、便签笔记、chrome插件下载等",

+ 1 - 1
apps/toolkit/payback/index.js

@@ -54,7 +54,7 @@ new Vue({
                 alert('在哪儿能贷30年?');
                 return false;
             }
-            if (!this.yearRate || /\D|\./.test(this.yearRate) || parseFloat(this.yearRate) <= 0) {
+            if (!this.yearRate || !/\d|\./.test(this.yearRate) || parseFloat(this.yearRate) <= 0) {
                 alert('请输入正确的贷款年化利率!');
                 return false;
             }