彭煜

导航

随笔分类 -  string 字符串

vue.js a标签拼接变量
摘要:<div class="videoBox" v-for="itemVideos in videoResList.slice(0,10)" :key="itemVideos.resId"> <a :href="`http://xjshz.jyyun.com/res/resource/index.act 阅读全文

posted @ 2022-05-16 21:11 彭煜ฅ˙-˙ฅ

js GET请求url后面拼接字符串
摘要:let res = await fetch({ url: `http://localhost:8888/api/public/v1/goods/detail?${'goods_id'}=${goodsId}` // data: { // goods_id: goodsId // } }); cons 阅读全文

posted @ 2020-05-22 00:52 彭煜ฅ˙-˙ฅ

Vue.js中使用${}实现变量和字符串的拼接
摘要:<template> <li class="list-group-item"> <div class="handle"> <a href="javascript:;" @click="del">删除</a> </div> <p class="name"><span>{{comment.name}}< 阅读全文

posted @ 2020-03-17 14:31 彭煜ฅ˙-˙ฅ

js - Vue 字符串拼接
摘要:需求: 点击导出试算按钮, 弹出提示框给用户, 但申请的任务号是从后台返回出来 每一条都不一样, 怎么做字符串拼接?? 实现: // res.data.applyno 是后台返回的数据 ' + res.data.applyno + ' 阅读全文

posted @ 2020-01-09 15:16 彭煜ฅ˙-˙ฅ