标签:arc post color 提交数据 .ajax ESS else layer time
function addHotSearch() { var data = {}; data.keyword = $("#name").val(); data.hot = $("#hot").val(); data.expectTimes = $("#expectTimes").val(); if (data.keyword == null || data.keyword == ‘‘){ layer.alert("关键词不能为空") }else { $.ajax({ url:"attribute/addHotSearch", data:data, type:"POST", success:function (data) { var code = data.code; var message = data.message; if(code == 1){ location.href = "attribute/showHotSearch" }else { layer.alert(message); } } }) } }
标签:arc post color 提交数据 .ajax ESS else layer time
原文地址:https://www.cnblogs.com/sunBinary/p/9971025.html