From a93b2cb8564f12e0b441d31fcaedf85c1b0e62d0 Mon Sep 17 00:00:00 2001 From: cilame Date: Fri, 19 Nov 2021 15:37:11 +0800 Subject: [PATCH] Update env_maker.js --- tools/env_maker.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/env_maker.js b/tools/env_maker.js index 0830e66..2f6a5b0 100644 --- a/tools/env_maker.js +++ b/tools/env_maker.js @@ -1379,6 +1379,21 @@ window[_y].getComputedStyle = function(element, pseudoElt){ return element.style } +HTMLScriptElement._init = function(_this){ + _this[_y].src = '' + _this[_y].type = '' + _this[_y].noModule = false + _this[_y].charset = + _this[_y].async = true + _this[_y].defer = false + _this[_y].crossOrigin = null + _this[_y].text = '' + _this[_y].referrerPolicy = null + _this[_y].event = '' + _this[_y].htmlFor = '' + _this[_y].integrity = '' +} + window[_y].listeners = {} // 全部监听事件,方便管理 function v_hook_getElement(e){ e[_y].getElementById = function(){return window[_y].v_getele(...arguments)}