Expand All@@ -717,7 +717,7 @@ function cmf_get_image_url($file, $style = '') * @param string $style 图片样式,支持各大云存储 * @return string */ functioncmf_get_image_preview_url($file,$style='') functioncmf_get_image_preview_url($file,$style='watermark') ...
一、利用JavaScript展示图片 二、前端图片上传操作 *弹窗图片
cmf_get_image_url 转化数据库保存图片的文件路径,为可以访问的url @param string $file 文件路径,数据存储的文件相对路径 @param string $style 图片样式,支持各大云存储 @return string 图片链接 cmf_get_image_preview_url 获取图片预览链接 @param string $file 文件路径,相对于upload @param string $style ...
// $watermark = cmf_get_plugin_config($storage['type']); // $style = empty($style) ? $watermark['styles_watermark'] : $style; // } $storage = Storage::instance(); return $storage->getImageUrl($file, $style); } @@ -724,14 +724,14 @@ function cmf_get_image_preview_url($fi...
files.push({url:url,preview_url:preview_url,filepath:filepath,name:name,id:id}); }); } if(tab=='network-file'){ var url=$('#network-file-input').val(); if(url==''){ alert('请填写文件地址!'); return false; } var id = "networkfile"+new Date().getTime(); ...
(event, data, previewId, index){ //alert(data); var form = data.form, files = data.files, extra = data.extra, response = data.response, reader = data.reader; //alert(data.filenames); var str = JSON.stringify(data); alert(str); //document.write(str); alert(data.response.file...
50%"> 'one','select_id'=>'image-select-input2'])}" data-title="选择图片" data-width="910" data-height="550"> 选择图片 说明: 文本框中的 id 一定要和
files.push({url:url,preview_url:preview_url,filepath:filepath,name:name,id:id}); }); } if(tab=='network-file'){ var url=$('#network-file-input').val(); if(url==''){ alert('请填写文件地址!'); return false; } var id = "networkfile"+new Date().getTime(); ...
Updates spgetimagepreviewurl.md Oct 4, 2016 spgetuseravatarurl.md Updates spgetuseravatarurl.md Nov 24, 2016 spisweixin.md Updates spisweixin.md Oct 4, 2016 spsetoption.md Updates spsetoption.md Oct 4, 2016 theme.md Create theme.md ...
'); return false; } var file = new Object(); file.id = "historyfile"+new Date().getTime(); file.filepath = $('#history_path').val(); file.preview_url = $('#history_view').val(); file.url = $('#history_path').val(); file.name = ""; files.push(file); }else{ var...