js中 fetch请求,以及随机数

fetch

var url='https:----------;
            var opt={
                method:"GET",
                credentials: 'include'
            };
fetch(url,opt).then(response => response.json())
            .then(data => {})

random:

 random_time=(Math.random()*(0.5-1.3) + 1.3).toFixed(2);
posted @ 2020-05-19 19:40  几许风雨  阅读(334)  评论(0)    收藏  举报