Skip to content

Instantly share code, notes, and snippets.

@h2ero
Created August 20, 2016 05:48
Show Gist options
  • Save h2ero/9117de7946779650c7f5810356fc2d45 to your computer and use it in GitHub Desktop.
Save h2ero/9117de7946779650c7f5810356fc2d45 to your computer and use it in GitHub Desktop.
function del(id){
var url = 'http://weibo.com/aj/mblog/del?ajwvr=6';
var mid = id
var postData = {}
postData.mid = mid;
console.log(postData)
$.ajax({
url: url,
type: "POST",
dataType: "json",
data: $.param( postData ),
success: function(resp) {
//called when successful
console.log(resp)
},
});
}
$('.WB_cardwrap.WB_feed_type.S_bg2').each(function(){
console.log(del($(this).attr('mid')))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment