如何使用php echo包含javascript文件?
我正在使用php创建一个html页面---
echo "<html><head><link rel='stylesheet' type='text/css' <script src="Calculation.js"> </script> href='style.css' </head><body>";
Run Code Online (Sandbox Code Playgroud)
我在上面的行中包含了脚本代码,然后是表单标签---
<form action='/workdonecalculation/index.php?_pagination_off=1' method='post' class='form' onSubmit='return workdone();'>
Run Code Online (Sandbox Code Playgroud)
但我的PHP代码不会调用我的javascript文件(Calculation.js)