写jquery我没有在vs2010中获得自动完成功能 [英] writing jquery i don't get autocomplete in vs2010
本文介绍了写jquery我没有在vs2010中获得自动完成功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
当我在.ascx页面写jquery时,我没有在Intellisense中找到自动完成功能。当我自己写作时,它的砰砰声例外。在我的代码下面:
Hi all,
when i am writing jquery in .ascx page, i don''t find autocomplete in Intellisense.when I am writing myself, its thowing Exception. Below my code:
$(document).ready(function () {
$("#exampleAutoComplete_txtAutoComplete").autocomplete(function () {
source: ["C++", "Java"];
});
});
这里自动完成硬编码。我该如何解决这个问题。我在谷歌搜索,但我没有得到预期的结果。
请帮助我。
谢谢
Shafik
here autocomplete hard coded. how can i resolve this issue. I search in google but i didn''t get expected result.
Please help me.
Thanks
Shafik
推荐答案
(document).ready(function(){
(document).ready(function () {
(< span class =code-string> #exampleAutoComplete_txtAutoComplete)。autocomplete(function(){
source:[ C ++, Java];
});
});
("#exampleAutoComplete_txtAutoComplete").autocomplete(function () { source: ["C++", "Java"]; }); });
这里自动完成硬编码。我该如何解决这个问题。我在谷歌搜索,但我没有得到预期的结果。
请帮助我。
谢谢
Shafik
here autocomplete hard coded. how can i resolve this issue. I search in google but i didn''t get expected result.
Please help me.
Thanks
Shafik
您需要做的就是下载jquery和jqueryui文件,以便它们在您的硬盘上并包含在您的项目中,而不是从url。
http://jquery.com/download/ [ ^ ]
http://jqueryui.com/resources/download/jquery-ui-1.10.1。 custom.zip [ ^ ]
自动完成功能在jqueryui内。
All you need to do is download jquery and jqueryui files so that they are on your harddrive and included in your project instead of referencing them from a url.
http://jquery.com/download/[^]
http://jqueryui.com/resources/download/jquery-ui-1.10.1.custom.zip[^]
The autocomplete function is inside of jqueryui.
这篇关于写jquery我没有在vs2010中获得自动完成功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文