程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> var-JS數據問題!!!!!

var-JS數據問題!!!!!

編輯:編程綜合問答
JS數據問題!!!!!

var arrData = [{
"picture" : "2_2_content/css/myImg/picture1.png",
}, {
"picture" : "2_2_content/css/myImg/picture2.png",
}, {
"picture" : "2_2_content/css/myImg/picture3.png",
}, {
"picture" : "2_2_content/css/myImg/picture4.png",
}, {
"picture" : "2_2_content/css/myImg/picture5.png",
}, {
"picture" : "2_2_content/css/myImg/picture6.png",
}, {
"picture" : "2_2_content/css/myImg/picture7.png",
}, {
"picture" : "2_2_content/css/myImg/picture8.png",
}, {
"picture" : "2_2_content/css/myImg/picture9.png",
}, {
"picture" : "2_2_content/css/myImg/picture10.png",
}, {
"picture" : "2_2_content/css/myImg/picture11.png",
}];

                    如何給這個arrData繼續添加picture數據???
                    例如這個如何添加進去:
                    {
            "picture" : "2_2_content/css/myImg/picture12.png",
        }

最佳回答:


 arrData.push({
            "picture" : "2_2_content/css/myImg/picture12.png",
        });
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved