JSPatch 踩过的坑

https://github.com/bang590/JSPatch/issues/9



selector

btn.addTarget_action_forControlEvents(self, "handleBtn:", 1 << 6)


CGRectMake

​    var btn = require('UIButton').alloc().initWithFrame({x:0, y:100, width:width, height:50})


关于CGSize结构体中的中式报错.size undefined等:

UIScreen.mainScreen().bounds().width;直接省略了size()和width后面的()

对于初始化后的实例, 则不能忽略size(), 改变的是width:  image.size().width;


Math.ceil

var size = {width: 100, height:100};
var width = Math.ceil(size.width);



最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容