按钮代码<button type="button" title="上传附件" id="uploadFile" data-toggle="tooltip" class="btn btn-secondary"><i class=&quo[...]
函数事件:function layerOpen(title,url,fun_yes='',fun_cancel='',fun_end='',width='800px',height='70%') { var btns=false; if(fun_yes) { var btns=['确认提交', '取消']; [...]
直接上代码 <!DOCTYPE html> <html> <head> <title>videojs支持hls直播实例</title> <link href="https://cdn.bootcss.com/video.js/7.7.6/video-js.m[...]
问题:如果用jquery append直接加载script标签的话,会报错的。除了document.write外,还有没有其他的比较好的动态加载js文件的方法。解决方法jquery方法$.getScript("./test.js"); //加载js文件 $.getScript("./test.js",fun[...]
之前有研究过pjax,但是都比较顺利,再次用得时候却出现了bug,记录一下:引入1.7以上jq版本2.引入 pjax3.$(document).pjax('a', '#content', {fragment:'#content', timeout:8000}); 第三是重点:fragment:'#content'