AutoJs6 icon indicating copy to clipboard operation
AutoJs6 copied to clipboard

怎么重写或继承java类呢?

Open YmStrip opened this issue 1 year ago • 0 comments

rollup+ts -> es5 尝试1 client = new class extends WebChromeClient { onConsoleMessage(message: string, lineNumber: number, sourceID: string) { console.log(${sourceID}:${lineNumber}\n${message}) } } //polyfill的函数貌似不支持, “没有apply的公共方法” 尝试2 client = new WebChromeClient() client.onConsoleMessage = (a,b,c) => {} //无法被赋值 尝试3 console.log(client.class.getMethod) //funcion //反射,貌似只能修改不是函数的类型,没有尝试 尝试4 //字节码?

YmStrip avatar Apr 01 '24 09:04 YmStrip