0
点赞
收藏
分享

微信扫一扫

head发送中文

<template>
<view>

<button type="default" @click="fasong">发送</button>
</view>
</template>

<script>
export default {
data() {
return {
}
},
methods: {
fasong() {
let ss = encodeURIComponent("中文")
console.log(ss)
uni.request({
url: 'http://192.168.31.99:8080/T2',
method: 'GET',
header: {
nicheng: ss,
},
data: {},
success: res => {
console.log(res.data)
},
fail: () => {},
complete: (c) => {
// console.log(c)
}
});
}
}
}
</script>

<style>

</style>

举报

相关推荐

0 条评论