未加载本地js文件 [英] A local js file is not loaded

查看:90
本文介绍了未加载本地js文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.aspx文件,可以在本地加载几个.js文件,例如

I have an .aspx file that loads several .js files locally, e.g.

<pre lang="Javascript">    <script src="../Scripts/jquery.ui.datepicker.js" type="text/javascript"></script>



datePicker功能运作良好。

这个.aspx曾经只是在项目之下。将.aspx移动到文件夹后,日期选择器功能不再起作用。我猜可能没有加载jquery.ui.datepicker.js。我应该做些什么改进才能使其发挥作用?如果您查看我的主题并提供您的提示,请提前感谢。


The datePicker function worked well.
This .aspx used to be just under the Project. After I moved the .aspx into a folder, the date picker function does not work any more. I would guess the jquery.ui.datepicker.js may not be loaded. What correction should I made to make it work? Thanks in advance if you view my thread and also provide your hint.

推荐答案

我发现问题已解决,因为发现文本框已设置为Enabled =false。删除这段代码后,它运行良好。
I got the problem solved as finding that the textbox was set Enabled="false". After remove this piece of code, it works well.


这篇关于未加载本地js文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆