点击My97DatePicker事件无效,触发事件calendar.js,datepicker.css等文件无法加载

1.文件引入:<script type="text/javascript"        src="content/H-UI/lib/My97DatePicker/WdatePicker.js"></script>

浏览器能正常访问WdatePicker.js,WdatePicker.css文件。当触发wdatepicker事件,calendar.js,datepicker.css文件无法访问,错误如下:

Failed to load resource: the server responded with a status of 404 (Not Found)
zh-cn.js Failed to load resource: the server responded with a status of 404 (Not Found)
calendar.js Failed to load resource: the server responded with a status of 404 (Not Found)
 

解决方法:

解决这个问题是在WdatePicker.js源代码中:

K.skin=J.skin;var $=["<head><script>",""

改变为:K.skin=J.skin;var $=["<head><base href='/'><script>",""

就是添加base标签。
下面打印出生成HTML页面的属性,js变量为$

 

 

 

 

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页