wechat-cnode icon indicating copy to clipboard operation
wechat-cnode copied to clipboard

微信小程序 cnode社区版

Results 6 wechat-cnode issues
Sort by recently updated
recently updated
newest added

看了源码, 有评论的api, 但是没有评论的组件?

> 修改app.json中enablePullDownRefresh必须为bool值的问题 ![image](https://user-images.githubusercontent.com/27266016/39982110-dd3141fc-5785-11e8-8440-1c262a1ad89c.png) > 修改result is not defined 的bug ![image](https://user-images.githubusercontent.com/27266016/39982247-4a1d540e-5786-11e8-82ab-b2b8be206ab8.png)

首先感谢提供源码学习,本人初学者,刚开始遇到这个错很迷茫,巴特,这个问题,我定位出来了。 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...

![image](https://cloud.githubusercontent.com/assets/5113679/21836793/c9f1018a-d802-11e6-890f-b8927692e526.png) 修改下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; }