限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:首页 >网站技术

heredoc技术

分类:网站技术时间:2018-03-27浏览:2848
1,以<<function uploadFile($button = 'button', $return = 'file', $type = 'file') {     $appRoot = __APP__;     $htmlBox = << KindEditor.ready(function(K) { var uploadFile = K.editor({ allowFileManager : true, fileManagerJson : '{$appRoot}/public/manager', uploadJson : '{$appRoot}/public/upload', fileType : '{$type}', //urlType : 'relative' }); K('#{$button}').click(function() { uploadFile.loadPlugin('insertfile', function() { uploadFile.plugin.fileDialog({ fileUrl : K('#{$return}').val(), clickFn : function(url, title) { K('#{$return}').val(url); uploadFile.hideDialog(); }});});});}); Kindeditor;     return $htmlBox; }  
本站文章如未注明出处均为原创,转载请注明出处,如有侵权请邮件联系站长。
0/500
Share your thoughts respectfully.