请登录后探索更多精彩内容!
https://xincl.lanzoum.com/iufMC2u581li
本机环境PHP7.0.0 ~ PHP8.4.1,
install.sql 低于mysql8的版本
install8.sqll 高于等于mysql8
2025/04/21
<?=in_array($conf ['editor_js'] ??'ckeditor', ['ckeditor','tinymce'])?'import(new URL("'.$conf ['view_url'].'js/module/editor-'.($conf ['editor_js'] ??'ckeditor').'.js",location)).then(Module=>{new Module.default(jform [0]);$(".attachlist_parent>a").prop("hidden",true);$(".attachlist_parent>fieldset").prop("hidden",true);});':''?>
2025/04/20
const input = document.createElement('input'); input.type = 'file'; input.accept = 'image/*'; input.multiple = false; input.addEventListener('change', async function () { const data = new FormData; data.set('file',this.files [0]);//文件blob FILE $.ajax({ url: '?attach.htm', data, processData: false, //不能省略 dataType: 'json', type: 'POST', beforeSend(xhr) { xhr.setRequestHeader('ajax-fetch', '1'); xhr.setRequestHeader('content-action', 'attach/upload'); } }); }); input.click(); input.remove();
$.ajax({ url: '?attach.htm', dataType: 'json', type: 'POST', beforeSend(xhr) { xhr.setRequestHeader('ajax-fetch', '1'); xhr.setRequestHeader('content-action', 'attach/list'); } });
暂无评论
请先登录后发表评论!
暂无评论