jQuery Miscellaneous noConflict () method
Examples
Use noConflict () method of jQuery variable specifies a new name:
var jq=$.noConflict();
try it"
Definition and Usage
noConflict () method to release the variable $ jQuery control.
This method can also be used as a jQuery variable specifies a new custom name.
Tip: When using other JavaScript library functions for $, this method is useful.
grammar
$.noConflict(removeAll)
参数 | 描述 |
---|---|
removeAll | 可选。布尔值,规定是否释放所有 jQuery 变量(包括 "jQuery")的 jQuery 控制权。 |