removeAttr删除所有已存在的样式:
< script type = " text/javascript " >
$ ( function ( ) {
$ ( " input [ type = ' button ' ] " ) . focus ( ) . click ( function ( ) {
$ ( ' div ' ) . removeAttr ( " title class " ) ; // 删除div中所有已存在的样式
} )
</script>