<script type="text/javascript"><!-- $('#button').bind('click', function() { $.ajax({ url: 'index.php?route=agag/agag1/send', type: 'post', data: $('#payment :input'), dataType: 'json', beforeSend: function() { $('#button').attr('disabled', true); $('#payment').before('<div class="attention"><img src="/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>'); }, complete: function() { $('#button').attr('disabled', false); $('.attention').remove(); }, success: function(json) { if (json['error']) { alert(json['error']); } if (json['success']) { location = json['success']; } } }); }); //--></script>
php ajax
最新推荐文章于 2021-03-20 02:54:58 发布