Home  >  Article  >  Backend Development  >  DIV中js方法无法替换掉呢?解决思路

DIV中js方法无法替换掉呢?解决思路

WBOY
WBOYOriginal
2016-06-13 10:21:05776browse

DIV中js方法无法替换掉呢?
清空aaa







以上代码为啥还会执行abvd方法呢?请高人指点

------解决方案--------------------
函数的作用域是整个文档,并不因声明区域不在了而失效

你如想使某函数失效,可重新定义它为空函数(只限 js)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn