angular 之 bindJQuery
2015-12-18 00:00
891 查看
摘要: 绑定jquery对象,如果没有,就采用内置的jQLite 对象
在这个里面,我觉得做了件重要的事情,
另外 也重写 jquery 的 cleanData
在这个里面,我觉得做了件重要的事情,
// 直接给 jquery 对象绑定了这些方法。 extend(jQuery.fn,{ // 直接可以通过 dom 对象获取到 scope 对象。 scope:JQLitePrototype.scope, isolateScope:JQLitePrototype.isolateScope, controller: JQLitePrototype.controller, injector:JQLitePrototype.injector, inheritedData:JQLitePrototype.inheritedData })
scope: function(element){ // return jqLite.data(element,'$scope') || jqLiteInheritedData(element.parentNode || element, ['$isolateScope','$scope']) } isolateScope:function(element){ } controller: jqLiteController injector:function(element){ } inheritedData:function(){ }
另外 也重写 jquery 的 cleanData
相关文章推荐
- jQuery源码学习扒一扒jQuery对象初使化
- JQuery(三)
- JQuery(二)
- jQuery笔记
- jQueryMobile--栅格布局
- jQueryMobile--基础
- JQuery(一)
- jQuery Ajax 实例 全解析(转)
- jQuery学习之jQuery Ajax用法详解(转)
- jquery checkbox (选中和取消选中事件on("change"))做笔记
- 20151217jqueryUI--自动补全工具
- 使用jquery.qrcode生成二维码
- 20151217jqueryUI学习笔记
- jquery检测浏览器类型
- 20151217jquery学习笔记--注册表单
- 解决jQuery-validation框架remote校验只能返回true、false问题
- jquery选择器
- jquery获得所有重名的文本框值
- jQuery数组($.grep,$.each,$.inArray,$.map)处理函数详解
- target与currentTarget的区别(jqueryui方式获取z-Index)