2015年9月12日
Directive 的使用
var app = angular.module("app", [])
.directive("hello", function () {
var option = {
restrict: "AEC",
template: "Hello, Directive",
};
return option;
})<!-- 元素 -->
<div>
<hello></hello>
</div>
<!-- 属性-->
<div>
<div hello></div>
</div>
<!-- class -->
<div>
<div class="hello"></div>
</div>Javascript 常用获取时间函数
React程序
Last updated