#la

angularJS1笔记-(18)-$http及用angular实现JSONP跨域访问过程

官网上的解释为:The $http serviceisacoreAngularJSservicethatfacilitatescommunicationwiththeremoteHTTPserversviathebrowser's XMLHttpRequest objectorv...

angularJS1笔记-(17)-ng-bind-html指令

angular不推荐大家在绑定数据的时候绑定html,但是如果你非要这么干也并不是不可以的。举个例子:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>指令</title>...

angularJS1笔记-(16)-模块里的constant、value、run

index.html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"></head><body><divng-app="myApp"><divng-controlle...

angularJS1笔记-(15)-自定义指令(accordion伸缩菜单原始实现)

index.html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><linkrel="stylesheet"href="../../vendor/bootstrap3/css/bootstrap.m...

angularJS1笔记-(14)-自定义指令(scope)

index.html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"></head><body><divng-app="myApp"><divng-controlle...

angularJS1笔记-(13)-自定义指令(controller和controllerAs实现通信)

index.html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"></head><body><divng-app="myApp"><divng-controlle...

angularJS1笔记-(12)-自定义指令(compile/link)

index.html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"></head><body><divng-app="myApp"><divng-controlle...

angularJS1笔记-(11)-自定义指令(transclude/priority/terminal)

自定义指令的属性transclude:为true时,允许把html中新定义的指令中原来的dom运用到该指令的template中。属性priority,设置该指令的优先级,优先级大的先执行,默认指令的优先级是0(但ng-repeat指令的优先级默认是1000)。属性terminal:为true时,指示优先级小于当前指令的...

angularJS1笔记-(10)-自定义指令(templateUrl属性)

index.html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"></head><body><divng-app="myApp"><scripttype="tex...

angularJS1笔记-(9)-自定义指令(restrict/template/replace)

index.html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"></head><body><divng-app="myApp"><custom-tags>...

angularJS1笔记-(8)-内置指令

index.html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><style>.colorStyle{color:#3e8f3e;}</style></head>&l...

angularJS1笔记-(7)-控制器的合理使用(显示和隐式的依赖注入)

AngularJS依赖注入1.隐式注入:不需要开发人员干预,angularJS自动根据参数的名称识别和注入数据app.controller("myCtrl".function($scope){$scope.name="xiaoming"})隐式注入如果一但要进行优化,就会存在问题2.显式注入:开发人员通过字符串描述,告...

angularJS1笔记-(6)-自定义过滤器

html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"></head><body><divng-app="myApp"><divng-controller="fir...

angularJS1笔记-(5)-过滤器练习

html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>Title</title><linkrel="stylesheet"href="../../vendor/...

angularJS1笔记-(4)-自定义服务

html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>Title</title></head><body><divng-app="myA...
首页上一页...359360361362363...下一页尾页