摘要: 1 var convertDT=function(dt) 2 { 3 dt.replace(/Date\([\d+]+\)/, function (a) { eval('d = new ' + a) }); 4 alert(d); 5 } 6 jQuery(document).ready(function () { 7 ... 阅读全文
posted @ 2017-12-07 16:21 芝幽幽 阅读(2704) 评论(0) 推荐(0) 编辑
摘要: 最近前端的同事说要写一个手机查看的html5页面,需要我提供数据。 这个很ok啊,立马写了个服务返回数据。但是对方调用不了,因为跨域了。 返回错误如下: Failed to load xxxxxx: No 'Access-Control-Allow-Origin' header is present 阅读全文
posted @ 2017-12-07 14:39 芝幽幽 阅读(143) 评论(0) 推荐(0) 编辑