摘要: myAppModule.config(['$httpProvider', function($httpProvider) { $httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; }]); 阅读全文
posted @ 2018-01-22 16:54 调调儿 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 屌屌的写法。。function htmlEncode(value){ //create a in-memory div, set it's inner text(which jQuery automatically encodes) //then grab the encoded contents 阅读全文
posted @ 2016-10-27 15:31 调调儿 阅读(1581) 评论(0) 推荐(0) 编辑
摘要: pip install xxx.whl 阅读全文
posted @ 2016-03-21 18:49 调调儿 阅读(592) 评论(0) 推荐(0) 编辑
摘要: class DES { var $key; var $iv; //偏移量 function DES( $key, $iv=0 ) { //key长度8例如:1234abcd $this->key = $key; if( $iv == 0 ) { $this->iv = $key; //默认以$key 阅读全文
posted @ 2016-02-29 17:37 调调儿 阅读(2867) 评论(0) 推荐(0) 编辑
摘要: public object Test(string x){ return x;}当你的.net mvc web api里有这么个方法时。你想$.post("api/xxx/test",{"x":"ttt"},function(data){ console.log(data);});对不起,4... 阅读全文
posted @ 2015-12-11 13:03 调调儿 阅读(170) 评论(0) 推荐(0) 编辑
摘要: SAE自带的django目前到1.5版本,如果要使用更高的版本,则需要把django包同代码一起上传。以1.7.3为例先从SAE svn签出代码,默认1是根目录1. 1目录下创建文件夹 site-packages ,把django包copy到此文件夹 django包在python安装目录中 如 C:... 阅读全文
posted @ 2015-02-05 10:49 调调儿 阅读(3705) 评论(5) 推荐(0) 编辑
摘要: 微信更新sdk后大量分享朋友圈代码失效,标题 缩略图 描述无法自定义新版SDK分享文章步骤1.绑定域名 (方法参考 http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html )2.服务端 需要生成签名供分享页面的js接口... 阅读全文
posted @ 2015-01-22 11:09 调调儿 阅读(4173) 评论(0) 推荐(0) 编辑
摘要: 2015.1.21到目前为止这个破玩意不支持code first 建数据库 建表代替方案 SQL Server Compact-------------------------------------------------- 阅读全文
posted @ 2015-01-21 22:52 调调儿 阅读(738) 评论(0) 推荐(0) 编辑
摘要: 安装httpd git# yum install httpd git建空仓库# cd /var/cache/git/# mkdir gittest.git && cd gittest.git# git --bare initInitialized empty Git repository in /v... 阅读全文
posted @ 2014-06-14 10:55 调调儿 阅读(5628) 评论(1) 推荐(1) 编辑
摘要: <root>和<logger>两个节点同时存在,可能会记两份日志。原因:logger 继承root只要在配置文件里的logger加上属性additivity="false" 就可以了 阅读全文
posted @ 2013-01-22 13:43 调调儿 阅读(356) 评论(1) 推荐(1) 编辑