php调用js文件方法
2014-06-27 18:46:40 -0400
今天教大家一个在PHP中调用JS的好方法,刚学习PHP的朋友可以记录下来,方便日后使用,我们就用代码来说明下吧
<HTML>
<HEAD>
<TITLE> php调用js文件的好办法</TITLE>
</HEAD>
<BODY>
<scrīpt language=‘javascrīpt‘ type=‘text/javascrīpt‘ src=‘test.php‘></scrīpt>
<scrīpt>//(“aaaaaa!“);
</scrīpt>
</BODY>
</HTML>
test.php:
<?php
echo “
function ok(msg){
alert(msg);
}
“;
?>
Back to home
Subscribe |
Register |
Login
| N