$('#saveInformationTemplate_button').on('click', function(){
	if(isEmpty($("#name").val())){
		layer.msg('【名称】不可为空!');
		
		return;
	} 
	
	var saveInformationTemplate_form = $('#saveInformationTemplate_form').serialize();

	$.ajax({
		url : 'saveInformationTemplate.do',
		type : "post",
		dataType : "json",
		data : saveInformationTemplate_form,
		cache : false,
		async : false,
		success : function(data, textStatus, jqXHR) {
			if ('success' == textStatus) {
				debugger;
				layer.msg(data.message, {time: 2000, icon:6});
				
				if(1 == data.status){
    				setTimeout(function(){
	    				window.location.href = 'informationTemplateList.do';
    				}, 2000);
				}
			}
		},
		error : function(XMLHttpRequest, textStatus, errorThrown) {
			layer.msg("textStatus = " + textStatus + ", XMLHttpRequest.status = " + XMLHttpRequest.status + ", XMLHttpRequest.readyState = " + XMLHttpRequest.readyState);
		}
	});
});

  

相关文章:

  • 2022-02-03
  • 2021-11-03
  • 2021-07-23
  • 2022-03-04
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-06-30
猜你喜欢
  • 2021-09-30
  • 2021-12-16
  • 2021-09-30
  • 2021-07-04
  • 2021-09-30
  • 2021-09-30
相关资源
相似解决方案