明凯博客

关注网站技术,一个特立独行的程序员

7 11 月, 2017

jQuery 中post和get的使用同步操作

解决方法1: 在全局设置: $.ajaxSetup({ async : false }); 然后再使用post或get方法 $.get(“register/RegisterState”, {test : 12}, function(data, status) { if (stat […]

, ,

layer.prompt使文本框为空的情况下也能点击确定

最近一直在使用layui,但是用到弹出层layer.prompt时,如果文本框是空的话点击确定没有反应,不能向下执行。 但是我又需要空值,看看我原来的代码。 layer.prompt({ formType: 0, value: ‘初始值’, title: ‘请输入值’, area […]

, ,