js
文章平均质量分 88
sitelist
这个作者很懒,什么都没留下…
展开
-
js正则----匹配0个如何表示
[ ] 匹配一个范围的字符 example:[0-9] + 匹配一个或多个 * 匹配0个或多个 if(Num == 25 || Num === 0){ if ($("name25")!==null){ // if (!$("name2").value.match(/^[0-9]{3}$/)){ /^[1][3,4,5,7,8,9][0-9]{9}$/ console.log($("name25").val...原创 2021-10-31 10:42:22 · 948 阅读 · 0 评论 -
拷贝兔ajax上传和返回tag函数分析
拷贝兔ajax上传和返回tag函数分析 function multipartUploadWithSts(file,burn) { $("#select_file").hide(); $("#uploading").show(); console.log("file=",file); var formData = new FormData(); formData.append("file",file); f...原创 2020-12-21 16:16:54 · 237 阅读 · 0 评论 -
php----Index.php中上传文件移动文件的源代码调试分析
controller/Index.php $file = request()->file('file'); $fileInfo = $file->getInfo(); $fp = fopen('./a.txt', 'a+b'); fwrite($fp, print_r($fileInfo, true)); fclose($fp); 上面自己添加的四行调...原创 2020-12-21 15:48:01 · 367 阅读 · 0 评论 -
php----拷贝兔中选择文件按钮的upload_with_input事件
拷贝兔中选择文件按钮的upload_with_input事件 view/index/index.html <div class="fileBox" draggable='true' ondragstart="drag(event)" ondrop="drop(event)" ondragover="allowDrop(event)"> <span id="fileSpan">拖拽到该区域</span> <p id="uploadfile"></p>原创 2020-12-21 14:56:16 · 180 阅读 · 0 评论