- 小程序名称和设置的搜索关键字都有这个关键字,但是就是搜索不到。
APPID:wxbd242677f4a1a4ee 在小程序名称和发布的时候搜索关键字都有“垃圾分类”,但是搜索“垃圾分类”就是搜索不出我们的小程序。多谢官方核实查看!
2019-07-10 - image的src路径怎么才能关闭图片的缓存,src改变了,但是图片没刷新
我想实现的功能是:点击操作改变image的src,然后实现图片的变化。 这个应该是一个很常见的功能需求
2017-04-28 - downloadFile下载image显示失败 wxfile.open
我目的是下载一张图片,然后显示在image标签里面。 [代码]var[代码] [代码]ufpath = app.globalData.hostName + vdata.data.filePath;[代码][代码]console.log([代码][代码]'down path is '[代码] [代码]+ ufpath)[代码][代码]wx.downloadFile({[代码][代码] [代码][代码]url: ufpath, [代码][代码]//仅为示例,并非真实的资源[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]'down down path is '[代码] [代码]+ ufpath)[代码][代码] [代码][代码]console.log([代码][代码]'down temp file '[代码] [代码]+ res.tempFilePath)[代码][代码] [代码][代码]var[代码] [代码]tempimg = res.tempFilePath;[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]FilePath:tempimg,[代码][代码] [代码][代码]// showface:true[代码][代码] [代码][代码]})[代码] [代码]<[代码][代码]image[代码] [代码]bindtap[代码][代码]=[代码][代码]"bindPreImg"[代码] [代码]data-imgsrc[代码][代码]=[代码][代码]"{{FilePath}}"[代码] [代码]mode[代码][代码]=[代码][代码]"aspectFit"[代码] [代码]src[代码][代码]=[代码][代码]"{{FilePath}}"[代码][代码]>[代码][代码]</[代码][代码]image[代码][代码]>[代码] 打印日志: [代码]down down path is http:[代码][代码]//127.0.0.1:8360/static/camera/1493360555.jpg[代码] [代码]camera.js [sm]:66 down temp file wxfile:[代码][代码]//tmp_547422841o6zAJs2O8-DtLIa4JjqF5v2SN6Oob41ba5d358816e21e53aa11cb8f1c943.jpg[代码] [代码]VM5393:1 Fri Apr 28 2017 14:22:36 GMT+0800 (CST) 渲染层网络层错误[代码][代码]VM5393:2 Failed to load image http:[代码][代码]//wxfile.open.weixin.qq.com/tmp_547422841o6zAJs2O8-DtLIa4JjqF5v2SN6Oob41ba5d358816e21e53aa11cb8f1c943.jpg : the server responded with a status of 404 (HTTP/1.1 404 Not Found) [代码][代码]From server 127.0.0.1[代码] 为什么会出现这种错误? VM5393:2 Failed to load image http://wxfile.open.weixin.qq.com/tmp_547422841o6zAJs2O8-DtLIa4JjqF5v2SN6Oob41ba5d358816e21e53aa11cb8f1c943.jpg : the server responded with a status of 404 (HTTP/1.1 404 Not Found) From server 127.0.0.1
2017-04-28