var option_point_exchange = [123,123,123,123,123];
var _script='var option_point_exchange1 = option_point_exchange;';
eval(_script);
console.log(option_point_exchange1);
打印结果
来源:CSDN
作者:Joker_PL
链接:https://blog.csdn.net/wujizhishui/article/details/104318297