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);



你可能感兴趣的:(JSPatch 踩过的坑)