PhoneGap包装setInterval
函数,以便console.log返回:
function wrapped_setInterval(code, interval)
var id = Native.setInterval(code, interval)
code.__timerId = id
addTimer(id, interval, false)
return id
}
如何调用原始setTimeout
功能?它似乎在Native.original.setTimeout
备份,是否有办法访问Native
对象?