$(function() { var daan = '';

$('.xuanze').click(function(e) { $(this).toggleClass('redBorder');

var id = $(this).attr('i');
var currentDaan = $(this).attr('value');
daan += currentDaan;

console.log(daan);

$.ajax({
  type: 'POST',
  url: '{:url("Dati/getAnswer")}',
  data: { daan: daan },
  dataType: 'json',
  success: function(msg) {
    console.log('成功');
  }
});

}); });


原文地址: https://www.cveoy.top/t/topic/o4Zt 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录