您所在的位置:首页>>编程技术

php调用js文件的好办法

点击数:1651 更新时间:2014-04-06 15:20:00 来源: 厦门网站建设-返回
<HTML>
<HEAD>
<TITLE> php调用js文件的好办法</TITLE>
</HEAD>
<BODY>
<scrīpt language=''javascrīpt'' type=''text/javascrīpt'' src=''test.php''></scrīpt>
<scrīpt>
ok("aaaaaa!");
</scrīpt>
</BODY>

</HTML>


<?php
echo "
function ok(msg){
alert(msg);
}
<code class="php plain" style="list-style-type: none; margin: 0px !important; padding: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px !important; background-image: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !i
【责任编辑:CSW8923