多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### ajax完整实例 ```javascript $.ajax({ type: "POST", url: "{:url('confirm_info')}", dataType: 'json', data: { username: username }, //请求成功 success: function (res) { console.log(res) if (res.code == 1){ mui.toast(res.msg,{ duration:'1000', type:'div' }) setTimeout(function () { window.location.href="{:url('uploads_list/index')}" }, 1200) }else { mui.toast(res.msg,{ duration:'1000', type:'div' }) } }, //请求失败,包含具体的错误信息 error: function (e) { console.log(e); } }); ```