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

WBOY
Release: 2016-06-13 10:21:05
Original
776 people have browsed it

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







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

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

你如想使某函数失效,可重新定义它为空函数(只限 js)
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!