1.js代码
2.在页面中调用sAlert函数
<input type="button" value="点击这里" onClick="sAlert('测试弹出层并锁屏效果');" />
测试的结果如下: