【发布时间】:2020-02-25 03:34:28
【问题描述】:
M 在限制 AngularJS 选项中代表什么?
从AngularJS Developer Guide - Directives 文档中我看到:
restrict 选项通常设置为:
...
'C' - 只匹配类名
'M' - 只匹配评论
但为了避免记住C 用于上课而M 用于评论,我想了解为什么使用M。
我在互联网上没有找到任何关于它的信息。我的猜测是m 是单词comment 中c 之后的下一个辅音字母,因为c 已经被注释使用了m。
【问题讨论】:
标签: angularjs angularjs-directive options semantics restrict