摘要:
先看代码:// ajax 关注/取消关注function focus_action(uid, type){ var r; type = type ? 'new' : 'delete'; $.ajax({ url:'api/follow/'+type, data:{'uid':uid}, dataType: 'json', type: 'post', async: false, success: function(e){ r = common_return(e); ... 阅读全文