推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
coolicer

Angularjs: $element.scope()没有东西出来

  •  
  •   coolicer · Jan 8, 2014 · 3345 views
    This topic created in 4509 days ago, the information mentioned may be changed or developed.
    jQuery/jqLite Extras
    Angular also provides the following additional methods and events to both jQuery and jqLite:

    Events
    ...

    Methods
    ...
    scope() - retrieves the scope of the current element or its parent.

    这里的意思是jq对象有这个scope方法吗?为什么我打印不出东西。
    1 replies    1970-01-01 08:00:00 +08:00
    ThomasChan
        1
    ThomasChan  
       Jan 8, 2014
    要打印出东西来那也先得$element不是空的啊,写到directive里随便绑定个元素,就打印出来了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5489 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 09:00 · PVG 17:00 · LAX 02:00 · JFK 05:00
    ♥ Do have faith in what you're doing.