angularJS1笔记-(6)-自定义过滤器】的更多相关文章

html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <div ng-app="myApp"> <div ng-controller="firstController"> <ul> <!--这里用到了自…
自定义指令的属性 transclude:为true时,允许把html中新定义的指令中原来的dom运用到该指令的template中. 属性priority,设置该指令的优先级,优先级大的先执行,默认指令的优先级是0(但ng-repeat指令的优先级默认是1000). 属性terminal:为true时,指示优先级小于当前指令的指令都不执行,仅执行到本指令. index.html: <!DOCTYPE html> <html lang="en"> <head&…
html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div ng-app="myApp"> <div ng-controller="firstController&q…
index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="../../vendor/bootstrap3/css/bootstrap.min.css"/> </head> <body> <d…
index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <div ng-app="myApp"> <div ng-controller="firstController"> <div book-list…
index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <div ng-app="myApp"> <div ng-controller="firstController"> <div book-list&…
index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <div ng-app="myApp"> <div ng-controller="firstController"> <div ng-repeat=…
index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <div ng-app="myApp"> <script type="text/ng-template" id="customTags2"&…
index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <div ng-app="myApp"> <custom-tags>122</custom-tags> <div class="custom-ta…
模板标签: 标签在渲染的过程中提供任意的逻辑 语法: 由{% ... %} 和 {% end... %} 常用标签: with:类似取别名 模版继承: Django模版引擎中最强大也是最复杂的部分就是模版继承了. 模版继承可以让你创建一个基本的“骨架”模版, 它包含您站点中的全部元素,并且可以定义能够被子模版覆盖的 blocks . 继承:extends 例: 子模版继承主模版base.html的全部内容 在子模版首行添加 {% extends 'book/base.html' %} 修改:bl…