提交 622c6e17 编写于 作者: M m0_60155232

Wed Sep 13 10:48:00 CST 2023 inscode

上级 3b27f400
<template>
<button @click="parseHanle">解析</button>
<button @click="parseHanle">解析</button>
</template>
<script setup>
import axios from 'axios';
// 域名解析处理器
async function parseHanle() {
console.log("===");
console.log(browser);
const proxyUrl = 'https://cors-anywhere.herokuapp.com/';
const targetUrl = `https://dns.google.com/resolve?name=baidu.com`
const res = await axios.get(proxyUrl + targetUrl);
console.log(res);
}
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册