I'm currently using two libraries (prototype and jQuery), thus I've implemented the jQuery noConflict method and set it equal to $j:
我目前正在使用两个库(prototype和jQuery),因此我实现了jQuery noConflict方法并将其设置为$ j:
var $j = jQuery.noConflict();
var $ j = jQuery.noConflict();
Problem is, now the jquery-1.3.2-vsdoc.js doesn't recognize my $j as a valid entry argument.
问题是,现在jquery-1.3.2-vsdoc.js不能将我的$ j识别为有效的入口参数。
Is there a way to change this? I've played around with the jquery-1.3.2-vsdoc.js and had no results.
有没有办法改变这个?我玩过jquery-1.3.2-vsdoc.js并没有结果。
Thanks!!
2 个解决方案
#1
On line 51 of jquery-1.3.2-vsdoc.js, replace
在jquery-1.3.2-vsdoc.js的第51行,替换
jQuery = window.jQuery = window.$ = function(selector, context) {
with
jQuery = window.jQuery = window.$ = window.$j = function(selector, context) {
you'll be lying a little bit to Studio, since the source of the -vsdoc no longer matches the executing source, but it should be a safe hack.
你会对Studio有点撒谎,因为-vsdoc的源不再与执行源匹配,但它应该是一个安全的黑客。
#2
Have you tried using an identifier that doesn't start with a dollar sign? I know that's the convention, but it might be mucking with your intellisense. Just a thought. Good luck!
您是否尝试过使用不以美元符号开头的标识符?我知道这是惯例,但它可能与你的intellisense混乱。只是一个想法。祝好运!
#1
On line 51 of jquery-1.3.2-vsdoc.js, replace
在jquery-1.3.2-vsdoc.js的第51行,替换
jQuery = window.jQuery = window.$ = function(selector, context) {
with
jQuery = window.jQuery = window.$ = window.$j = function(selector, context) {
you'll be lying a little bit to Studio, since the source of the -vsdoc no longer matches the executing source, but it should be a safe hack.
你会对Studio有点撒谎,因为-vsdoc的源不再与执行源匹配,但它应该是一个安全的黑客。
#2
Have you tried using an identifier that doesn't start with a dollar sign? I know that's the convention, but it might be mucking with your intellisense. Just a thought. Good luck!
您是否尝试过使用不以美元符号开头的标识符?我知道这是惯例,但它可能与你的intellisense混乱。只是一个想法。祝好运!