cxyzhangjie
//比如有一个input是这样的
var _html="<input id=\'txt_TextBox1\' type=\'text\' date-col=\'a\' class=\'txt read-only\' date-replace=\'txt_\' date-type=\'TextBox\' readonly=\'readonly\'  date-c=\'自定义校验\' style=\'width: 90%;height: 22px;background: rgb(168, 168, 168)\' />"
//我们可以这样去除date-col属性
_html=_html.replace(/date-col=\'.*?\'/g, \'\');

然后得到的 _html,我们可以用$(\'#id\').append(_html); 放到任意元素下

分类:

技术点:

相关文章:

  • 2021-11-17
  • 2021-12-31
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案