@tarojs/components中的options.singleton怎么设置?



  • var singleton = null;
    var	singletonCounter = 0;
    var	stylesInsertedAtTop = [];
    
    var	fixUrls = __webpack_require__(15);
    
    module.exports = function(list, options) {
    	if (typeof DEBUG !== "undefined" && DEBUG) {
    		if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
    	}
    
    	options = options || {};
    
    	options.attrs = typeof options.attrs === "object" ? options.attrs : {};
    
    	// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
    	// tags it will allow on a page
    	if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
    

登录后回复