Home > php教程 > php手册 > body text

php实例多文件上传实例代码

WBOY
Release: 2016-06-13 11:22:28
Original
1012 people have browsed it

 php实例多文件上传实例代码
  //a = $(''+MultiFile.STRING.file.replace('$file', v.match(/[^/]+$/gi)[0])+''),

                

                 //这是新的代码结构.

                

                //取出图片格式.

                ext = String(v.match(/.w{1,4}$/gi));

               

                // v变量是路径地址, 所以可以直接用img来显示出来.

                var imgs = (ext=='.jpg' || ext=='.gif' || ext=='.png')?'php实例多文件上传实例代码':'';       

               

                // 从'+imgs+'开始,就是我增加的.

                a = $(''+MultiFile.STRING.file.replace('$file', v.match(/[^/]+$/gi)[0])+' '+imgs+'  点击插入'),

               

         b = $(''+MultiFile.STRING.remove+'');
复制代码

无标题文档

       

 

 

部分测试: 列表内容


复制代码       //对于编辑来说, 键名key就会从0开始计算.所以获取一下附件最后一个rsok值是非常重要的.

           //var int_s=$('.a_b:last').attr('rsok');

       // Bind functionality to the first element

       if(!MultiFile.MultiFile) MultiFile.addSlave(MultiFile.e, 0);
复制代码


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!