我知道这是一件容易的事情,但我只能看到这一点。 任何人都能够告诉我,为什么在财产清单编码>之后,我会发现以下代码的“missing }”错误:
<script type="text/javascript">
$(".single_image").live("click", function() {
jwplayer().load({
file: utubeurl
});
});
</script>
该守则全文如下:
$(xml).find( item ).each(function(i){
var current=$(this);
var ttl=current.find( title:first ).text();
var thum=current.find( thumbnail:first ).text();
var cat=current.find( category:first ).text().split( , );
var desc = current.find( description:first ).text();
var utubeurl = current.find( youtubeurl:first ).text();
var fbshareurl = current.find( facebookshareurl:first ).text();
var twturl = current.find( twitterurl:first ).text();
var nbcurl = current.find( nbcsiteurl:first ).text();
var item = {
title:ttl,
thumbnail:thum,
category:cat,
description:desc,
youtubeurl:utubeurl,
facebookshareurl:fbshareurl,
twitterurl:twturl,
nbcsiteurl:nbcurl,
obj:$( <div class=" +options.itemClass+ "><a id=" +parentId+ " class="single_image" title=" +desc+ "><script type="text/javascript"> $(".single_image").live("click",function(){ jwplayer().load({file: +utubeurl+ }); }); </script><img src=" +thum+ " /></a><div class="show_lightbox_title"><strong> +ttl+ </strong></div><ul id="social"><li><iframe src=" +fbshareurl+ " class="iframe_style" scrolling="no" frameborder="0" allowtransparency="true"/></li><li><a class="twtbtn" href=" +twturl+ " target="_blank"><img src="images/twitter_btn.gif"></a></li><a class="nbcbtn" href=" +nbcurl+ " target="_blank"><img src="images/showPages_btn.gif"></a></div> )
};
shows.push(item);
});