AutoJs6
AutoJs6 copied to clipboard
怎么重写或继承java类呢?
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
//字节码?