php调用js文件的好办法
<
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】