摘要: 1. 数组转字符串且用“,”分割。1 $arr = array('one','two','three','four');前几天我在修公司某项目的Bug,看到了这样的写法:1 $str = '';2 $dot = '';3 foreach($arr as $key =>$value){4 $str... 阅读全文
posted @ 2015-11-01 21:30 andy_1987_chen 阅读(149) 评论(0) 推荐(0)
摘要: 代码在github上( https://github.com/andygithubchen/jsUpload),请结合github上的文件阅读。主要实现js跨域上传文件,这里的跨域目前只在两个域名所指向的服务器在同一局域网内。 当然,这两种方案都可以做同域名上传。例如:192.168.1.60 ... 阅读全文
posted @ 2015-11-01 21:04 andy_1987_chen 阅读(1408) 评论(0) 推荐(0)