以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何引用本地js  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=143766)

--  作者:foxtablefans
--  发布时间:2019/12/3 21:11:00
--  如何引用本地js
js文件放到了项目的文件夹中
如何在web控件中引用这个js

比如 <script type="text/javascript" src="https://abc.com/test.js"></script>
如何引用项目文件夹attchments/js/test.js?

--  作者:有点蓝
--  发布时间:2019/12/3 21:43:00
--  
参考:http://www.foxtable.com/mobilehelp/topics/0061.htm

就是文件必须放到HttpServer.WebPath 或者事件头的根目录下,比如:HttpServer.WebPath = "d:\\web"
js文件路径:"d:\\web\\js\\test.js" 则引用为:

wb.AppendHTML("<script src=\'./js/test.js\'></script>"