摘要: postmessage双向通信中,是不能使用回调函数的。 这样是不行的,js会提示function不会被克隆。 我猜啊因为postmessage是通过dom通讯,js对象会被json化 也就是说不能传递方法。 不过,话说回来,有什么不能的呢,大不了,把function tostring一下,也是可以 阅读全文
posted @ 2019-07-29 17:56 alan0405 阅读(2698) 评论(0) 推荐(0) 编辑