js与jquery的区别

var html = $('<a target="_blank" href="' + adCompContent.clickURL + '"><img width="' + adCompContent.width + '" height="' + adCompContent.height + '" src="' + adCompContent.imageURL + '"></a>');
html.appendTo("#mediabox_tbkib_pic");
html.bind('click', function() {
if (adCompContent.clickTrough) {
$(this).attr('href', PluginAD.getAttachParamsUrl(adCompContent.clickTrough, ADUID, 2, 0));
} else {
$(this).attr('href', adCompContent.clickURL);
}

posted @ 2016-05-25 11:27  飘然离去  阅读(160)  评论(0编辑  收藏  举报