js对页面dom元素进行操作

// 新增一行
            $('.add_xz').on('click', function() {
                $('.xz_ul').append(`
                
删除
`) }) // 删除 $('.xz_ul').on('click', '.shanchu', function() { var thisNode = $(this).parent() thisNode[0].parentNode.removeChild(thisNode[0]) })

js对页面dom元素进行操作

你可能感兴趣的:(javascript,前端,html)