1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| routingDemoApp.run(['$httpBackend', function ($httpBackend) { var users = { "code": 1, "data": [{ "UserID": 1, "UserName": "小红", "MaxDevice": 10, "Remark": "...", "DeviceNum": 5, "ScriptName": "脚本1" }, { "UserID": 2, "UserName": "小名", "MaxDevice": 20, "Remark": "...", "DeviceNum": 8, "ScriptName": "脚本2" }, { "UserID": 3, "UserName": "小康", "MaxDevice": 45, "Remark": "...", "DeviceNum": 20, "ScriptName": "脚本3" }], "pageCount": 1, "Count": 3 }; $httpBackend.whenGET(/\/View\/*/).passThrough(); $httpBackend.whenGET(/ *.js/).passThrough(); $httpBackend.whenGET(/ *.css/).passThrough(); $httpBackend.whenGET(/ *.jpg/).passThrough();
$httpBackend.whenPOST("/api/GetUser", { token: "", pindex: 1, pagesize: 999 }).respond(200, users); }])
|