加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

如何在Netbeans 7.4 IDE中将自定义AngularJS指令添加到html验证

发布时间:2020-12-17 07:22:22 所属栏目:安全 来源:网络整理
导读:我最近从 Eclipse切换到Netbeans 7.4 IDE,并想知道如何向html验证器添加自定义Angular指令. 如果你在你的html文件中添加这样的东西: div my-directive/my-directive/div 将显示一个错误说明: "Element "my-directive" not allowed as child of element "di
我最近从 Eclipse切换到Netbeans 7.4 IDE,并想知道如何向html验证器添加自定义Angular指令.

如果你在你的html文件中添加这样的东西:

<div>
    <my-directive></my-directive>
</div>

将显示一个错误说明:

"Element "my-directive" not allowed as child of element "div" in this context."

我可以在html验证器中禁用“elements”属性以避免此错误,但我宁愿不这样做,因为它会抑制真正的错误.

您可以为指令声明自定义命名空间,请参阅 http://forums.netbeans.org/post-59359.html或定义自定义标记: http://wiki.netbeans.org/CustomTagActions

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读