我有一个定价数组
pricing = new Array();
pricing[1] = 35;
pricing[2] = 60;
pricing[3] = 84;
pricing[4] = 104;
pricing[5] = 120;
pricing[6] = 132;
pricing[7] = 140;
pricing[8] = 144;
pricing[9] = 153;
pricing[10] = 160;
10以下的都有价格,10以上的都和10一样
它只到 20,所以我最初所做的只是重复 11 - 20 的价格。但这很浪费,我怎么能告诉我数组所有内容 > 10 = 160
ps我的最终版本是浓缩的:)