多数组JS合并方法:
eval('[' + JSON.stringify(site.host.options).concat("," + gethost()) + ']');
具体参考:Hondy.Cloud.Console.Product.Site.js
site.host.options参考值:["","请选择服务器"]
gethost()参考值:["gz.hondy.com.cn","广州高配服务器","hondy.com.cn","0.65"],["sh.wuhudns.com","中端配置服务器","hondy.net","0.65"],["hz.wuhudns.com","华东杭州服务器","yoooan.com","0.65"],["host.8888r.com","上海中端服务器","8888r.com","0.65"],["hk.whfst.com","香港轻量服务器","whfst.com","0.65"]
合并后:[["","请选择服务器"],["gz.hondy.com.cn","广州高配服务器","hondy.com.cn","0.65"],["sh.wuhudns.com","中端配置服务器","hondy.net","0.65"],["hz.wuhudns.com","华东杭州服务器","yoooan.com","0.65"],["host.8888r.com","上海中端服务器","8888r.com","0.65"],["hk.whfst.com","香港轻量服务器","whfst.com","0.65"]]
|