解决jquery选择器id中带点的获取不到

  • 说明情况:获取不到dom的情况

    $('#s123.555.432').val();

    解决办法:

    方法1、原生js替换

    $(document.getElementById('s123.555.432')).find('#EntryTag').html()

    方法2、属性获取

    $("[id='s123.555.432']").val();

猜你喜欢

转载自blog.csdn.net/qq_27751965/article/details/103575110