English 中文(简体)
为什么在财产清单出现错误之后,会忘记这一缺失吗?
原标题:Why am i getting this missing } after property list error? :(

我知道这是一件容易的事情,但我只能看到这一点。 任何人都能够告诉我,为什么在财产清单之后,我会发现以下代码的“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);
            });
最佳回答

您需要引用您的财产价值:

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> )

......

 ... jwplayer().load({file: +utubeurl+ }); ... 

......

 ... jwplayer().load({file:" +utubeurl+ "}); ... 

页: 1 如果不增加这些引文,你就不必逃脱。 但是,你们会得到这个想法?

卡车

问题回答

3. 要求将档案财产置于引号之下,如:

function () {

 file  :  utubeurl 

}

www.un.org/Depts/DGACM/index_french.htm

我的坏处忘记了,我与json、jquery和可能还有其他一些 j子相混淆,你重新定义了财产,不需要把记忆的名号变成一个扼子。

当我复制并贴出这套法典时,我看到的是另一个特征,可以追溯到第二次关闭};

如果这并非我本页其他地方所看到的错误的源头,则将取消对我实施的罚款。

该网页是否可公开查阅?

这个问题通过河道通过变数解决,然后由河道穿透。

var item = {
                    title:ttl,
                    thumbnail:thum,
                    category:cat,
                    description:desc,
                    youtubeurl:utubeurl,
                    facebookshareurl:fbshareurl,
                    twitterurl:twturl,
                    nbcsiteurl:nbcurl,
                    obj:$( <div class=" +options.itemClass+ "><a href="javascript:utubeurlParser(  +utubeurl+  )" id=" +parentId+ " class="single_image" title=" +desc+ "><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);
            });

            setSetter();
        }
    });
}
utubeurlParser = function(url){
              jwplayer().load({file: [url]});}




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.