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

WBOY
Release: 2016-06-21 08:47:48
Original
1529 people have browsed it

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文件一致

地址绝对正确

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