wechat-cnode
wechat-cnode copied to clipboard
微信小程序 cnode社区版
很多报错
看了源码, 有评论的api, 但是没有评论的组件?
> 修改app.json中enablePullDownRefresh必须为bool值的问题  > 修改result is not defined 的bug 
首先感谢提供源码学习,本人初学者,刚开始遇到这个错很迷茫,巴特,这个问题,我定位出来了。 utils/util.js 中函数getDateDiff 中没有预定义 result 导致报错。
# 微信开发者工具1.9.1,报错的问题,callback 函数参数错误,这个是什么原因造成的呢 ``` WAService.js:3 thirdScriptError result is not defined;at pages/topics/topics getData function;at api request success callback function ReferenceError: result is not defined at Object.getDateDiff (http://127.0.0.1:9973/appservice/utils/util.js:48:12) at http://127.0.0.1:9973/appservice/pages/topics/topics.js:69:37 at Array.map...
 修改下page样式和page标签即可,添加个height:100% page{ height: 100%; } .page{ height: 100%; box-sizing: border-box; margin: 0; padding: 0; font-family:'Microsoft YaHei', Helvetica, STHeiTi, sans-seri; font-size: 28rpx; color: #333; }