angular 之 bindJQuery

在这个里面,我觉得做了件重要的事情,

// 直接给 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

你可能感兴趣的:(angular 之 bindJQuery)