JavaScript的this对象,什么意思

来源:互联网 发布:怀孕多久把脉能知男女 编辑:程序博客网 时间:2024/05/15 14:51


  var test= $('#Test');//Test是个是否选择radio控件
    
    if (test.length > 0) {
        test.on("change", function() {
            if ($(this).val() == '1') {
           
            } else {
               
            }
        })

0 0
原创粉丝点击