Browse Source

Merge commit from fork

pull/2239/head
贤心 2 months ago committed by GitHub
parent
commit
f756b41d63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/layui.js

4
src/layui.js vendored

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

Loading…
Cancel
Save