removeAttr删除所有已存在的样式

来源:互联网 发布:share软件 编辑:程序博客网 时间:2024/06/05 04:40

removeAttr删除所有已存在的样式:


< script  type = " text/javascript " >


$ ( function ( ) {


$ ( " input [ type = ' button ' ] " ) . focus ( ) . click ( function ( ) {


$ ( ' div ' ) . removeAttr ( " title  class " ) ;           // 删除div中所有已存在的样式


} )
            } )

</script>



0 0