str = "{""demo"":{""blog"":""http://www.njci.net/blog"",""author"":""yuren""," str = str & """article"":[{""title"":""AJAX"",""catalog"":""AJAX"",""text"":""This is a demo for AJAX""},{""title"":""JSON"",""catalog"":""AJAX"",""text"":""This is a demo for JSON""}]}}" 直接 eval 你去看看json
str = str & """article"":[{""title"":""AJAX"",""catalog"":""AJAX"",""text"":""This is a demo for AJAX""},{""title"":""JSON"",""catalog"":""AJAX"",""text"":""This is a demo for JSON""}]}}"
直接 eval
你去看看json
str1 = new Array();
str1[0] = 'shit';
str1[1] = 'love';
alert(str1.slice(0,str1.length));