博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mootools_一起使用jQuery和MooTools
阅读量:2511 次
发布时间:2019-05-11

本文共 1008 字,大约阅读时间需要 3 分钟。

mootools

There's yet another reason to master more than one JavaScript library: you can use some of them together! Since MooTools is prototype-based and jQuery is not, jQuery and MooTools may be used together on the same page.

掌握多个JavaScript库的另一个原因是:您可以将其中一些一起使用! 由于MooTools是基于原型的,而jQuery不是基于原型的,因此jQuery和MooTools可以在同一页面上一起使用。

XHTML和JavaScript (The XHTML and JavaScript)

jQuery sets this paragraph's color to red but MooTools sets the border color.

jQuery is namespaced so the $ function is free for MooTools to take hold of. The jQuery code passes jQuery to itself and then we call the argument $, thus jQuery is contained, so to speak.

jQuery具有命名空间,因此$功能免费供MooTools使用。 jQuery代码将jQuery传递给它自己,然后我们调用参数$ ,因此可以说包含了jQuery。

Obviously including two libraries within the same page is resource-consuming but if it's acceptable to the project and allows you to implement plugins from each library quickly, this may be a great option for you.

显然,在同一页面中包含两个库很耗资源,但是如果项目可以接受并允许您快速实现每个库中的插件,那么这对您来说是个不错的选择。

翻译自:

mootools

转载地址:http://ldpwd.baihongyu.com/

你可能感兴趣的文章
从远程库克隆库
查看>>
codeforces Unusual Product
查看>>
hdu4348 - To the moon 可持久化线段树 区间修改 离线处理
查看>>
springMVC中一个class中的多个方法
查看>>
cxx signal信号捕获
查看>>
《Android开发艺术探索》读书笔记——Cha3.2.3改变布局参数实现View的滑动
查看>>
python闭包与装饰器
查看>>
Acegi 源码解释
查看>>
Activity的几种启动跳转方式
查看>>
LCA最近公共祖先Tarjan(离线)
查看>>
牛客练习赛16 E求值
查看>>
matlab rank
查看>>
Asp.net系列--基础篇(三)
查看>>
css基础
查看>>
如何在tomcat中如何部署java EE项目
查看>>
【Python基础教程第2版】——第二讲:列表和元组
查看>>
小常识
查看>>
使用vscode开发python
查看>>
swift--调用系统单例实现打电话
查看>>
0038-算一算是一年中的第几天
查看>>