V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
Casibase - 开源AI知识库
Casibase是一套开源的基于LangChain的AI知识库,支持国内外数十种主流AI模型,支持MCP协议,所有会话数据云端存储,支持Office文件存储与向量索引,支持思维链和提示词调优模块,支持多命名空间与企业SSO单点登录。
Promoted by veotax
coolicer
V2EX  ›  JavaScript

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

  •  
  •   coolicer · 2014-01-08 15:53:37 +08:00 · 3052 次点击
    这是一个创建于 4218 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 条回复    1970-01-01 08:00:00 +08:00
    ThomasChan
        1
    ThomasChan  
       2014-01-08 16:47:05 +08:00
    要打印出东西来那也先得$element不是空的啊,写到directive里随便绑定个元素,就打印出来了
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   964 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:48 · PVG 02:48 · LAX 11:48 · JFK 14:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.