摘要:
1 controller as 和controller 有什么区别,能解决什么问题,此题可以考察对scope的理解程度2 html: {{currentDate()}} js: $scope.currentDate = function(){return new Date();} 这种写法有没有问题 阅读全文
posted @ 2016-08-21 23:34
爆炒小黄鸡
阅读(177)
评论(0)
推荐(0)
摘要:
ngRoute 模块中包含以下内容, 调用 $routeProvider.when 来配置不同路由的具体信息。 $routeProvider.when 方法接受2个参数,第一个是路由的url。第二个路由的具体配置,包括对应的模板地址,控制器名称等.$routeProvider.otherwise 可 阅读全文
posted @ 2016-08-21 12:16
爆炒小黄鸡
阅读(256)
评论(0)
推荐(0)

浙公网安备 33010602011771号