摘要: https://cnodejs.org/topic/549007b44823a0234c9e1716 myAppModule.controller('FrmController', ['$scope',function($scope){ $scope.colors = [{name:'black', shade:'dark'},{name:'white', shade:'light'},{nam... 阅读全文
posted @ 2017-02-05 15:53 stoneuu 阅读(1506) 评论(0) 推荐(0) 编辑
摘要: g:全部替换,不加g只会替换一个null 阅读全文
posted @ 2017-02-05 15:52 stoneuu 阅读(123) 评论(0) 推荐(0) 编辑
摘要: $index用来取顺序 null 阅读全文
posted @ 2017-02-05 15:52 stoneuu 阅读(1665) 评论(0) 推荐(0) 编辑
摘要: 如果要使用$location,$stateParams,那么必须有相应形参controller: function ($rootScope, $http, $scope, $state,$location,$stateParams) {$location的参数,可用于登录跳转null 阅读全文
posted @ 2017-02-05 15:50 stoneuu 阅读(2247) 评论(0) 推荐(0) 编辑
摘要: if(!confirm("您确定删除吗?")){return;} 阅读全文
posted @ 2017-02-05 15:49 stoneuu 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: 1 传参url跳转 2 将url存到网页session或cookie中 3 angularjs $location的参数,可用于登录跳转 阅读全文
posted @ 2017-02-05 15:47 stoneuu 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 测试浏览器:chrome 当有父元素的子元素未定义时undefined和null均为true,类型为undefined 当元素赋给null后undefined和null均为true,类型为object,因此建议设置为null 当直接用未定义顶级元素x时,无论是x==undefined或if(x)都会 阅读全文
posted @ 2017-02-05 15:39 stoneuu 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 安装 Git-1.9.4-preview201406111 通过 ssh-keygen但生成的位置却是C:\Users\Admin\AppData\Local\VirtualStore\Program Files (x86)\Git方式22 开始菜单 GitGUI--帮助--show ssh key... 阅读全文
posted @ 2015-01-21 16:47 stoneuu 阅读(308) 评论(0) 推荐(0) 编辑
摘要: mappackage l6.e5.map;import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Set;public class MapTest5My2{ public sta... 阅读全文
posted @ 2015-01-07 12:00 stoneuu 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-11-26 22:10 stoneuu 阅读(730) 评论(0) 推荐(0) 编辑