好好爱自己!

摘要: 今天发现 AngularJS 框架的$http服务提供的$http.get() /$http.post()的ajax请求中没有带 x-requested-with字段。这样的话,后端的php 就无法判断 接受的http请求是否是 ajax请求了。怎么办呢,显然就是给http 请求头中 加上这个字段就... 阅读全文
posted @ 2015-05-08 18:19 立志做一个好的程序员 阅读(6426) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://frugalcoder.us/post/2010/02/11/js-classes.aspxClassy JavaScript - Best Practices11. February 2010 13:26Okay, so you really want to be able... 阅读全文
posted @ 2015-05-08 12:38 立志做一个好的程序员 阅读(416) 评论(0) 推荐(0) 编辑

不断学习创作,与自己快乐相处