页面加载遮罩效果
<link rel="stylesheet" href="__STATIC__/src/jquery.mloading.css"> <script src="__STATIC__/src/require.js"></script> <script> requirejs.config({ paths:{ 'jquery':"__STATIC__/src/jquery.min", 'jquery-mloading':"__STATIC__/src/jquery.mloading" } }); require(["jquery","jquery-mloading"],function($){ $("#lunbnt").click(function(){ $("body").mLoading(); $("#lunform").submit(); }); });
引用http://cdn.bootcss.com/jquery/1.12.4/jquery.min.js