当前位置:   article > 正文

实现复制excel表格内容粘贴至网页的功能_复制excel的内容到页面的input 中

复制excel的内容到页面的input 中

需求
要求从excel表格中复制一列,粘贴到网页的input框中,并自动赋值到对应的input框里
在这里插入图片描述
实现过程
使用监听paste事件,根据事件提供的clipboardData属性,获取数据

HTML代码

<td>
    <input 
        v-model="item.applyPayAmount" 
        ref=
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号