1.先写一个方法

//设置清除方法
function clearn(e) {
$(e).val("");
}

2.对应的input名字写好(我直接粘贴的我的代码可能有点乱,不过对应的东西要注意,id名和要传入的东西);

<input type="" style="outline: none; // 去除选中状态边框
background-color: rgba(0, 0, 0, 0);// 透明背景;width: 100%;height: 72%;border: 0;" />
</div>

<span >X</span>

相关文章:

  • 2021-08-03
  • 2022-01-02
  • 2021-11-06
  • 2021-05-22
  • 2022-12-23
  • 2021-12-02
  • 2021-11-01
猜你喜欢
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-02-07
相关资源
相似解决方案