摘要:
var app = angular.module("myApp", ['ui.router']); app.config(function ($stateProvider, $urlRouterProvider) { $urlRouterProvider.when("", "/home"); $stateProvider .stat... 阅读全文
posted @ 2017-07-22 15:23
鱿鱼须须
阅读(291)
评论(0)
推荐(0)
摘要:
//对象字面量写法 var fn = { name: 'hello world', fn1: function() { console.log(this.name); } }; fn.fn1(); //prototype原型写法 function Fn() { this.name = 'hello world'; this.fn1 = f... 阅读全文
posted @ 2017-07-22 15:16
鱿鱼须须
阅读(282)
评论(0)
推荐(0)

浙公网安备 33010602011771号