想要在之前的代码基础上添加代码, 可以用ORI + 函数名这样调用以前的代码
//oc@implementation PatchTest- (void) buttonAction:(id) sender {//原来的代码 self.title = @"Hi World"}@end //jsdefineClass('PatchTest', { buttonAction:function(sender) { self.ORIbuttonAction:function(sender);//原来的代码 //新添加的代码写这里 },})2.
新闻热点
疑难解答