当前位置:编程学习 > asp >>

asp中如何包含js文件

答案:(index.asp) <% 'start of index.asp dim template template="<script src=a.js></script>" %> document.write("<%=template%>"); (a.js) //start of a.js alert("hello i have include of index.asp"); //end of a.js 回答完毕!忘采纳
其他:js是按javascript写的文件,asp就用asp做的页面,可以在asp文件中调用js文件,方法:<script src="***.js"></script> <%
Response.Write ('<script src="文件地址"></script>')
%> 但我必须在asp页面中运行。请问错误在哪里?如何解决? (index.asp) 

上一个:为什么有些网站只有JS表单验证,只要禁用JS就能通过不合法的表单输入内容~
下一个:DIV滚动条火狐兼容 求js模块 SCROLLBAR-DARK-SHADOW-COLOR:#eee;

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,