日期:2014-05-17 浏览次数:20995 次
$("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")));
});