【声明】关于六久阁私自出售我公司dedecms小程序插件声明
发布时间:2021-06-18 21:40:53查看:0百度小程序静态扫描几处错误的修改 
百度小程序开发者工具静态扫描,会报如下几个拼写或者漏写的错误,下边给出解决方法

释义:295:37  'page' is not defined.  no-undef  表示该文件的第295行出现了错误
 
(1)\utils\request.js
85行:fail: function () {  括号里加上res
改成:fail: function (res) {
 
(2)\pages\show\show.js
191行that未定义
解决办法:在digg里边第一行加上:var that = this;
 
(3)\pages\page\page.js
1、290:23  'CATEGORYS' is not defined.  no-undef
在290前面2加上:var CATEGORYS = swan.getStorageSync('categorys')
2、295:37  'page' is not defined.  no-undef
在295前面加上:let page = that.data.page;
 
(4)\pages\news\news.js
236:22  'curtypied' is not defined.  no-undef
236行的curtypied改成curtypeid
 
(5)\pages\list\list.js
287:22  'curtypied' is not defined.  no-undef
287行的curtypied改成curtypeid
 
(6)pages\index\index.js
286:37  'userinfo' is not defined.  no-undef
在var that = this;下边添加:var userinfo = swan.getStorageSync('userInfo');
(7)\pages\index\index.js
138:38  'errMsg' is not defined.  no-undef
137行的fail: function () {改成:fail: function (errMsg) {
 

版权声明:本文为原创文章,未经允许不得转载。https://doc.tengcee.com/phpcms/phpcmsquestion/179.html

服务热线

15137100750

我知道你不会打


但是我还是要写


你懂得!

微信二维码

QQ群二维码