I have stored arbitary data in an object as:
$(".cat-list-table tr td").live("click",function(){
if($("body").data($(this).html())){
delete $("body").data().$(this).html(); // I am want to delete value if already exists
}else{
$("body").data($(this).html(),$(this).html());
}
});
now I want to remove duplicate values .
any idea how to remove values from object.
thanks in advance!
使用removeData
方法 :
$("body").removeData($(this).html());
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.