// 一个常量,记录触发的方法 const onCreate = MainActivity.access$004; // send('sucess get onClick') //重载onClick方法 onCreate.implementation = function (v) { // Show a message to know that the function got called send('access$004 called'); onCreate.call(this, v); v.cnt.value += 9999; send('value change')
// Log to the console that it's done, and we should have the flag! console.log('Done:' + JSON.stringify(v.cnt)); return v.cnt.value; }; });