How to return value from async function?

前端 未结 0 710
臣服心动
臣服心动 2021-01-01 00:42

How to return value from async function?

I have tried this but it does not work:

var x;
getText("http://localhost/test/test.html").then(data          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题