81,095
社区成员
发帖
与我相关
我的任务
分享
$("a[href*='/product']").each(function(i){
var href = $(this).attr("href");
var id = href.substring(href.indexOf("giftview")+8, href.indexOf(".html"));
$(this).bind('click',createIndex('1',id));
});
$(document).on('click', 'a[href*="/product"]', function(){
var href = $(this).attr("href");
createIndex('1',href.substring(href.indexOf("giftview")+8, href.indexOf(".html")));
});