使用 $.post() 方法进行商品购买操作
{ // 使用 $.post() 方法发送 AJAX 请求,进行商品购买操作 $.post('goods_buy', { goodsid: goodid }, function(data) { if (data === 'ok') { // The purchase was successful, do something here... } else { // There was an error with the purchase, handle it here... } });}
原文地址: https://www.cveoy.top/t/topic/oKxL 著作权归作者所有。请勿转载和采集!