摘要:
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
阅读(1518)
评论(0)
推荐(0)
摘要:
g:全部替换,不加g只会替换一个null 阅读全文
posted @ 2017-02-05 15:52
stoneuu
阅读(132)
评论(0)
推荐(0)
摘要:
$index用来取顺序 null 阅读全文
posted @ 2017-02-05 15:52
stoneuu
阅读(1673)
评论(0)
推荐(0)
摘要:
如果要使用$location,$stateParams,那么必须有相应形参controller: function ($rootScope, $http, $scope, $state,$location,$stateParams) {$location的参数,可用于登录跳转null 阅读全文
posted @ 2017-02-05 15:50
stoneuu
阅读(2270)
评论(0)
推荐(0)
摘要:
if(!confirm("您确定删除吗?")){return;} 阅读全文
posted @ 2017-02-05 15:49
stoneuu
阅读(1325)
评论(0)
推荐(0)
摘要:
1 传参url跳转 2 将url存到网页session或cookie中 3 angularjs $location的参数,可用于登录跳转 阅读全文
posted @ 2017-02-05 15:47
stoneuu
阅读(162)
评论(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
阅读(259)
评论(0)
推荐(0)

浙公网安备 33010602011771号