网址

摘要: http://blog.csdn.net/dangai0201/article/details/77898285 阅读全文
posted @ 2017-09-20 14:14 &&gy 阅读(77) 评论(0) 推荐(0) 编辑

Angular的猜字游戏

摘要: <script> var myapp=angular.module("myapp",[]); myapp.controller("mycat",function ($scope) { $scope.cha=function () { $scope.dtr=$scope.gruee-$scope.ra 阅读全文
posted @ 2017-09-20 14:08 &&gy 阅读(131) 评论(0) 推荐(0) 编辑

敏感字过滤

摘要: <script> var app=angular.module("app",[]); app.filter("frl",function () { return function (mag,flag) { return mag.replace(/法|枪/g,flag); } }); app.cont 阅读全文
posted @ 2017-09-20 14:02 &&gy 阅读(113) 评论(0) 推荐(0) 编辑

inonc的网址

摘要: <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">网址:http://www.ionic.wang/js_doc-index-id-21.htm 阅读全文
posted @ 2017-09-20 13:49 &&gy 阅读(120) 评论(0) 推荐(0) 编辑

Angular实现的一些例子

摘要: <script> var data = { user:"吴四", items:[ {action:"约刘诗诗吃饭",done:false}, {action:"约刘诗诗跳舞",done:false}, {action:"约刘诗诗敲代码",done:true}, {action:"约刘诗诗爬长城",d 阅读全文
posted @ 2017-09-20 13:47 &&gy 阅读(190) 评论(0) 推荐(0) 编辑

angular的表格

摘要: <script> var app=angular.module("app",[]); <!--定义angular的控制器 --> app.controller("ctr",function ($scope) { <!--定义数据--> var arr=[{ id:"1235", name:"苹果8" 阅读全文
posted @ 2017-09-20 09:41 &&gy 阅读(557) 评论(0) 推荐(0) 编辑

购物车

摘要: body里面: 阅读全文
posted @ 2017-09-20 09:36 &&gy 阅读(109) 评论(0) 推荐(0) 编辑