![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
xmy555
这个作者很懒,什么都没留下…
展开
-
element ui框架 table 自定义列显示
<el-table :data="pageData" stripe border> <el-table-column label="序号" align="center" width="80"> <template slot-scope="scope"> {{scope.$index+1+pagesize*(currentPage-1)}...原创 2018-04-25 15:50:12 · 19161 阅读 · 0 评论 -
axios 全局变量默认Content-Type 无效问题
之前用AJAX直接可以设置类型就可以使用axios 发现设置了 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8'后端依然收不到数据import querystring from 'querystring'let param = { ip: that.ip...原创 2018-04-25 15:56:57 · 10774 阅读 · 0 评论 -
html2canvas 解决跨域问题
<img src="url" crossorigin="anonymous" > /* url 最好后面?+字符串防止缓存*/ h2c(obj, { allowTaint:false, useCORS: true }).then(canvas => { //do sth }) ...原创 2019-01-10 13:13:16 · 3375 阅读 · 0 评论