oneIceHeart
小小程序员,漫漫程序路

导航

 

2015年12月23日

摘要: 今天搭建laravel自测环境,发现chrome下登录正常,IE下报csrf错误 (TokenMismatchException in VerifyCsrfToken.php line 46:),在so上找到了类似的问题,原来是域名不能包含下划线(_),吓的我以后不敢用蛇形命名了,哈哈答案是:Int... 阅读全文
posted @ 2015-12-23 14:37 oneIceHeart 阅读(250) 评论(0) 推荐(0)
 

2014年1月22日

摘要: 1. 使用textarea实例化ueditor对象时,需要将textarea放入form中,不然js无法获取textarea的值2. ueditor跨域问题: a. 开启配置文件中的customDomain为true或实例化开启 b. 页面上手动更改document.domain: c. dialogs/internal.js的头部增加document.domain="yourdomain.com" 阅读全文
posted @ 2014-01-22 09:03 oneIceHeart 阅读(314) 评论(0) 推荐(0)
 

2013年11月14日

摘要: 项目中用到了头像裁剪,我想到了jcrop,ajaxUpload后jcrop,部署完毕,以为完美收工,没想到IE下出现问题,jcrop无法加载代码: $('#show').html(""); $('#target,#preview,#preview1,#preview2').attr('src', response + '?' + Math.random()); $('#target').Jcrop({ // #target 内图片、裁剪框初始化 ... 阅读全文
posted @ 2013-11-14 09:35 oneIceHeart 阅读(383) 评论(0) 推荐(1)
 

2013年10月28日

摘要: $xml =simplexml_load_file('Public/syn.xml');/*此处打印出来的结果是object(SimpleXMLElement)#20 (1) { ["server"]=> array(2) { [0]=> object(SimpleXMLElement)#26 (2) { ["server_name"]=> array(2) { [0]=> string(3) "777" [1]=> string(6) "123456" } [&quo 阅读全文
posted @ 2013-10-28 18:31 oneIceHeart 阅读(502) 评论(0) 推荐(0)
 

2013年10月15日

摘要: //判断文件是否存在function IsExistsFile(filepath){ var xmlhttp=null; if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); }else if (window.ActiveXObject){ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET",filepath,false); xmlhttp.send(); if(xmlhttp.readyState==4){ 阅读全文
posted @ 2013-10-15 16:56 oneIceHeart 阅读(1604) 评论(0) 推荐(0)
 

2013年10月11日

摘要: 项目使用的ci框架,配置uploadify的参数,上传时报http error 302错误错误原因:控制器初始化时进行checkSession,如果session不存在则redirect将redirect改成exit(),问题解决了********************************************************只解决了表面问题,uploadify没有把sessionid传递到服务端,session获取不到 阅读全文
posted @ 2013-10-11 15:57 oneIceHeart 阅读(595) 评论(0) 推荐(0)