jquery 通过id获取元素时id带.的处理方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37805167/article/details/82456640
<div class="wrap">
    <div id="form.1">
        1111
    </div>
</div>
  1. 方法一
$('#form\\.1').html()
  1. 方法二
$("[id='form.1']").html()

猜你喜欢

转载自blog.csdn.net/m0_37805167/article/details/82456640