摘要: 与服务器端交互主要依赖的服务是$http,其实类似jquery 的get方法$http的使用方式和jquery提供的$.ajax操作比较相同,均支持多种method的请求,get、post、put、delete等。$http(config).success(function(data,status,... 阅读全文
posted @ 2014-07-04 09:58 昊天翱翔 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 前端根据url做路由控制,主要用到angular中route模块$routeProvider遇到的问题:引入angualar按照教程所说一步步的进行,总是调试不出来和各种报错,报错原因无非就是$routeProvider 未定义主要是引入的angular.js没有包含angular-route这个模... 阅读全文
posted @ 2014-07-04 09:35 昊天翱翔 阅读(458) 评论(0) 推荐(0) 编辑