调试时,发现sources里面没有这个js脚本,请教大侠帮忙看看
VM5570 WAService.js:2 Error: module "pages/my/searchUserinfo.js" is not defined
at p (VM5570 WAService.js:2)
at <anonymous>:5106:7
at doWhenAllScriptLoaded (<anonymous>:5505:21)
at Object.scriptLoaded (<anonymous>:5533:5)
at Object.<anonymous> (<anonymous>:5558:22)(env: Windows,mp,1.05.2201240; lib: 2.22.0)
不报错了
程序里面有个地方多了逗号
wx.navigateTo({
url: '/pages/my/searchUserinfo',
})
这根本单引号改成双引号。