想要在之前的代碼基礎上添加代碼, 可以用ORI + 函數名這樣調用以前的代碼
//oc@implementation PatchTest- (void) buttonAction:(id) sender {//原來的代碼 self.title = @"Hi World"}@end //jsdefineClass('PatchTest', { buttonAction:function(sender) { self.ORIbuttonAction:function(sender);//原來的代碼 //新添加的代碼寫這里 },})2.
新聞熱點
疑難解答