JQuery 总结(8)Ajax 无刷新技术

Ajax  无刷新技术

$(".delete").click(function () {
		cf=confirm("确认删除");
		if (!cf) {
			return false
		}
      id=this.id;
      obj=$(this);
       // var r;
      $.get('delete.php',{id:id},function (r) {
      	// console.log(r);
      // 	alert(r)
      if (r==1) {
      	// alert(1)
      	obj.parent().parent().fadeOut(100);

      }
      })


	})

  

猜你喜欢

转载自www.cnblogs.com/nice2018/p/10699898.html
今日推荐