会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
飞翔的小仓鼠
博客园
首页
新随笔
联系
管理
订阅
[置顶]
Angular 路由嵌套 ui-view
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2018-01-23 20:27 飞翔的小仓鼠
阅读(6)
评论(0)
推荐(0)
2018年1月23日
Angular http跨域
摘要: var app = angular.module('Mywind',['ui.router']); app.controller('Myautumn',function($scope,$http,$filter){ //$http跨域 //服务端设置 // 访问权限 response.setHead
阅读全文
posted @ 2018-01-23 21:01 飞翔的小仓鼠
阅读(161)
评论(0)
推荐(0)
Angular 遍历循环数组
摘要: 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 飞翔的小仓鼠
阅读(1750)
评论(0)
推荐(0)
Angular Cookie 读写
摘要: var app = angular.module('Mywind',['ui.router']) app.controller('Myautumn',function($scope,$http,$filter){ //angular Cookie写 //用法 :$scioe.addCookie("姓
阅读全文
posted @ 2018-01-23 20:56 飞翔的小仓鼠
阅读(137)
评论(1)
推荐(0)
Angular 监听路由变化
摘要: var app = angular.module('Mywind',['ui.router']) //Angular 监听路由变化 function run($ionicPlatform, $location, Service, $rootScope, $stateParams) { //路由监听事
阅读全文
posted @ 2018-01-23 20:54 飞翔的小仓鼠
阅读(1006)
评论(0)
推荐(0)
Angular白名单&&Angular拦截器 全局通用
摘要: //angular 白名单全局通用 app.config([ '$compileProvider', function ($compileProvider) { $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|itms-service
阅读全文
posted @ 2018-01-23 20:50 飞翔的小仓鼠
阅读(273)
评论(0)
推荐(0)
Angular 表单验证 基础篇
摘要: <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 飞翔的小仓鼠
阅读(130)
评论(0)
推荐(0)
Angular 选项卡
摘要: <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 飞翔的小仓鼠
阅读(232)
评论(0)
推荐(0)
2017年3月26日
初步了解关于js跨域问题-jsonp
摘要: js跨域问题是指在js在不同的域中进行数据传输或者数据通信,比如通过ajax向不同的域请求数据(说到ajax,不可避免的就会遇到两个问题:一是ajax是如何传递数据的?二是ajax是如何实现跨域的?),或者是js获取在页面内的不同域的框架中的数据(iframe),ifame在不同域下的js通信。 跨
阅读全文
posted @ 2017-03-26 09:01 飞翔的小仓鼠
阅读(149)
评论(0)
推荐(0)
2017年3月2日
AJax跨域请求
摘要: 客户端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 飞翔的小仓鼠
阅读(175)
评论(0)
推荐(0)
下一页
公告