layer開啟與關閉加載層


// 開啟加載層
layer.load(2, {
	shade: [0.6, '#fff'], content: '數據加載中...', success: function (layero) {
		layero.find('.layui-layer-content').css({
			'padding-top': '6px',
			'width': '150px',
			'padding-left': '40px'
		});
		layero.find('.layui-layer-ico16, .layui-layer-loading .layui-layer-loading2').css({
			'width': '150px !important',
			'background-position': '2px 0 !important'
		});
	}
});

//關閉加載層
layer.closeAll('loading'); 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM