js reads json content

Read json content

fetch('./xxx.json')
        .then((response) => response.json())
        .then((json) => console.log(json));

Guess you like

Origin blog.csdn.net/qq_26318597/article/details/132857692
Recommended