Home  >  Article  >  Web Front-end  >  button中的onclick事件不能调用外部js文件_html/css_WEB-ITnose

button中的onclick事件不能调用外部js文件_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 08:47:481481browse

nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Mi

<script> <br /></script>




//下面是js文件
function Z0() {p=prompt('please input'); }


回复讨论(解决方案)

看看js文件的地址是否写正确。文件夹编码是否与html文件一致

看看js文件的地址是否写正确。文件编码是否与html文件一致

地址绝对正确

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