Hybrid View
-
7 Dec 2012 7:56 PM #1
Unanswered: .join("") doesn't work in 2.1.0
Unanswered: .join("") doesn't work in 2.1.0
After changing from 2.0.1 to 2.1.0, join("") no longer works in my json files:
I must remove .join("") for it to work but then it will show in the comma in every sentence.Code:"lyrics": [ "沒有說過 第一個是你<br />", "不鬆手都給身走 有誰能說我未夠<br />" ].join("")
Any ideas? Thanks
-
7 Dec 2012 10:26 PM #2
I think it is supposed to be html rather than "lyrics". So change to it html without the quotes and make sure it is a property in config.
-
8 Dec 2012 4:37 AM #3
The lyrics is part of a json file which has multiple lines. It's not the html in a component. It was working fine in the previous version

-
8 Dec 2012 7:48 AM #4
This is NOT a json !
谁告诉你这是json的,这明明是js片段,".join()"是个方法,需要js解释器才能运行。
json是个数据格式,和平台无关,你觉得你这样写,非JS语言的平台认得出来么?I write English by translator.
-
8 Dec 2012 10:00 PM #5
Yeah it's not really json, but it used to work loading it using a json store.
How would I join the lyric lines then?Code:{"tracks":[ { "id": 1, "title": "Song", "lyrics": [ "AAAAA AAAAAA<br />", "BBBBBBBB<br />" ] } ]}


Reply With Quote