小编Jer*_*rry的帖子

Google Chrome:JavaScript关联数组,按顺序进行评估

好的,所以在网页上,我有一个JavaScript对象,我用它作为一个关联数组.当页面加载时,这在脚本块中静态存在:

var salesWeeks = {
    "200911" : ["11 / 2009", "Fiscal 2009"],
    "200910" : ["10 / 2009", "Fiscal 2009"],
    "200909" : ["09 / 2009", "Fiscal 2009"],
    "200908" : ["08 / 2009", "Fiscal 2009"],
    "200907" : ["07 / 2009", "Fiscal 2009"],
    "200906" : ["06 / 2009", "Fiscal 2009"],
    "200905" : ["05 / 2009", "Fiscal 2009"],
    "200904" : ["04 / 2009", "Fiscal 2009"],
    "200903" : ["03 / 2009", "Fiscal 2009"],
    "200902" : ["02 / 2009", "Fiscal 2009"],
    "200901" : ["01 / 2009", …
Run Code Online (Sandbox Code Playgroud)

javascript associative-array google-chrome

7
推荐指数
2
解决办法
7389
查看次数