我已经解决了我的问题。
handleClick = () => { fetch('/sample.txt') .then((r) => r.text()) .then(text => { console.log(text); }) }
我已经解决了我的问题。
handleClick = () => { fetch('/sample.txt') .then((r) => r.text()) .then(text => { console.log(text); }) }