- 博客(7)
- 收藏
- 关注
原创 vue改变数组内对象里的值 $set
##改变数组对象内的值this.$set(this.list, index, { …this.list[index], isShow: show })
2021-11-04 17:47:02
1693
原创 发送 from请求
let formData = new FormData();formData.append(“file”, blob,“file.wav”);let request = new XMLHttpRequest();request.open(“POST”, “http://localhost:8081/xxx/api/voice”,);request.onreadystatechange = () => {if (request.readyState == 4) {var res = JSON
2021-08-19 09:24:46
287
原创 解决ant 文字超过table td宽度隐藏 ,表头固定后有多余空白问题!2021-07-26
解决ant 文字超过table td宽度隐藏 ,表头固定后有多余空白问题!首先ant 自带api ellipsis:true 为文字超出表格宽度隐藏,但实际给了width宽度却不起作用这里文字后并没有…而且宽度是自适应,这里需要给全局样式加上`javascript.ant-table-fixed-left table,.ant-table-fixed-right table { width: min-content;}这里转自网络`` 感谢作者暂时找不到链接了~加上以后出现了
2021-07-26 20:22:29
1633
原创 Ant Design Vue 表格中按钮单独的loading详细解决方案
ant 表格按钮单独loading , 最近项目遇到了 :loading=‘loading’ 这样会使所有的button一起loading,找了很久都没有解决方式 ,有个作者提到了set方法在这里分享给遇到同样问题的小伙伴!话不多说上图片!方案 <span slot="transferScheme" slot-scope="text, record"> <a-button type="link" @click="handleBtn(record)"
2021-05-11 16:49:09
6330
原创 JavaScript数据类型检测 小白篇
数据类型检测一:一般场景下检测数据类型的方法:typeof (返回的是"“包裹的数据类型)示例:console.log(typeof.typeof.typeof[‘abc’])1.typeof[‘abc’] 返回的是"object”2.typeof.typeof[‘abc’]返回的是"string"3.typeof.typeof.typeof[‘abc’] 返回的是"string"缺点:数组和对象,甚至null 返回的都是 object二:最靠谱的检测数据类型的方法 toString
2021-01-18 19:25:21
119
原创 xhr发起POST请求(原生)
1.创建xhr对象var xhr = new XMLHttpRequest()2.调用open()xhr.open(‘POST’,‘请求的地址’ )3. 设置Content-Type 属性(注意这是固定写法)xhr.setRequestHeader(‘Content-Type’, ‘application/x-www-form-urlencoded’)4.调用send() (若果要提交数据,以字符串的形式提交)例:xhr.send(‘name-张三&age-18&sex-男’
2020-12-04 15:37:32
6601
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人