【发布时间】:2021-01-06 20:52:56
【问题描述】:
我想返回单个json对象并读取ip地址
//This is the object in json file
{"ip":"http://localhost:8080"}
例如,我想要
import urlAddress from './url.json';
const url = //the json value;
console.log(url);
【问题讨论】:
-
您的问题不清楚。请详细说明