/** * {} * @author yutent * @date 2023/08/10 10:07:51 */ export function noop() {} export function hideProp(host, name, value) { Object.defineProperty(host, name, { value, enumerable: false, writable: true }) } // 判定A标签的target属性是否指向自身 export function targetIsThisWindow(target) { if ( !target || target === window.name || target === '_self' || (target === 'top' && window == window.top) ) { return true } return false }