Merge commit from fork

pull/2239/head
贤心 2 months ago committed by GitHub
parent 5e707cec12
commit f756b41d63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -24,8 +24,8 @@
// 获取 layui 所在目录 // 获取 layui 所在目录
var getPath = function(){ var getPath = function(){
var jsPath = doc.currentScript ? doc.currentScript.src : function(){ var jsPath = (doc.currentScript && doc.currentScript.tagName.toUpperCase() === 'SCRIPT') ? doc.currentScript.src : function(){
var js = doc.scripts; var js = doc.getElementsByTagName('script');
var last = js.length - 1; var last = js.length - 1;
var src; var src;
for(var i = last; i > 0; i--){ for(var i = last; i > 0; i--){

Loading…
Cancel
Save