jQuery 杂项 noConflict() 方法

jQuery 教程 · 2019-03-28 19:19:29

实例

使用 noConflict() 方法为 jQuery 变量规定新的名称:

var jq=$.noConflict();

定义和用法

noConflict() 方法释放变量 $ 的 jQuery 控制权。

该方法也可用于为 jQuery 变量规定新的自定义名称。

提示:在其他 JavaScript 库为其函数使用 $ 时,该方法很有用。

语法

$.noConflict(removeAll)

参数 描述
removeAll 可选。布尔值,规定是否释放所有 jQuery 变量(包括 "jQuery")的 jQuery 控制权。

点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html

查看所有标签

The Starfish and the Spider

The Starfish and the Spider

Ori Brafman、Rod A. Beckstrom / Portfolio Hardcover / 2006-10-05 / USD 24.95

Understanding the amazing force that links some of today's most successful companies If you cut off a spider's leg, it's crippled; if you cut off its head, it dies. But if you cut off a st......一起来看看 《The Starfish and the Spider》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具