弘帝企业智能建站系统交流平台

 找回密码
 立即注册
查看: 1183|回复: 0

多数组JS合并方法

[复制链接]
发表于 2022-10-13 11:22:46 | 显示全部楼层 |阅读模式
多数组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"]]


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|弘帝企业智能建站系统 ( 皖ICP备07503252号 )

GMT+8, 2024-11-24 02:31 , Processed in 0.053060 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表