只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2018-01-23 20:27 飞翔的小仓鼠 阅读(6) 评论(0) 推荐(0) 编辑
摘要: var app = angular.module('Mywind',['ui.router']); app.controller('Myautumn',function($scope,$http,$filter){ //$http跨域 //服务端设置 // 访问权限 response.setHead 阅读全文
posted @ 2018-01-23 21:01 飞翔的小仓鼠 阅读(153) 评论(0) 推荐(0) 编辑
摘要: var app = angular.module('Mywind',['ui.router']) app.controller('Myautumn',function($scope,$http,$filter){ var objs =[{a:1},{a:2}]; angular.forEach(ob 阅读全文
posted @ 2018-01-23 20:59 飞翔的小仓鼠 阅读(1730) 评论(0) 推荐(0) 编辑
摘要: var app = angular.module('Mywind',['ui.router']) app.controller('Myautumn',function($scope,$http,$filter){ //angular Cookie写 //用法 :$scioe.addCookie("姓 阅读全文
posted @ 2018-01-23 20:56 飞翔的小仓鼠 阅读(133) 评论(1) 推荐(0) 编辑
摘要: var app = angular.module('Mywind',['ui.router']) //Angular 监听路由变化 function run($ionicPlatform, $location, Service, $rootScope, $stateParams) { //路由监听事 阅读全文
posted @ 2018-01-23 20:54 飞翔的小仓鼠 阅读(975) 评论(0) 推荐(0) 编辑
摘要: //angular 白名单全局通用 app.config([ '$compileProvider', function ($compileProvider) { $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|itms-service 阅读全文
posted @ 2018-01-23 20:50 飞翔的小仓鼠 阅读(253) 评论(0) 推荐(0) 编辑
摘要: <div class="nav"> <h4>表单验证</h4> <form ng-app="myApp" name="myForm" novalidate> <p>用户名:<br> <input type="text" name="user" ng-model="user" ng-minlength 阅读全文
posted @ 2018-01-23 20:45 飞翔的小仓鼠 阅读(125) 评论(0) 推荐(0) 编辑
摘要: <div ng-init="now=0;" class="nav"> <h4>选项卡</h4> <div > <input type="button" value="Tab1" class="{{now==0?'active':''}}" ng-click="now=0"> <input type= 阅读全文
posted @ 2018-01-23 20:39 飞翔的小仓鼠 阅读(224) 评论(0) 推荐(0) 编辑
摘要: js跨域问题是指在js在不同的域中进行数据传输或者数据通信,比如通过ajax向不同的域请求数据(说到ajax,不可避免的就会遇到两个问题:一是ajax是如何传递数据的?二是ajax是如何实现跨域的?),或者是js获取在页面内的不同域的框架中的数据(iframe),ifame在不同域下的js通信。 跨 阅读全文
posted @ 2017-03-26 09:01 飞翔的小仓鼠 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 客户端JS: 1var xhrurl = 'http://localhost:8001/Ajax/ticketNotify.ashx?cu=kefu1';; 2$.ajax({ 3 type : "get", 4 async : false, 5 url :xhrurl, 6 cache : fal 阅读全文
posted @ 2017-03-02 12:42 飞翔的小仓鼠 阅读(170) 评论(0) 推荐(0) 编辑