0
這裏是我的代碼:
$.get(site_url+'/core/includes/manipulate_player.php?action=delete&userid='+userid+'&productid='+productid, function(html){
console.log(html);
//some other code here
});
我想功能
beforeSend:function()
{
}
前添加像$.ajax()
任何人可以幫助我該怎麼做?
爲什麼你沒有使用'$ .ajax()'? – htmlbrewery
我知道我可以用$ .ajax()解決這個問題。但那不是我的問題。假設我使用了$ .ajax()並解決了問題,那麼我也想知道它是如何應用於$ .get()中的。 – Ninja