I have been replaced< div> " ; 13 jquery timer 返回函数 $ document ready function { window setTimeout function { do something } 1000 ; } ; 14 jquery也玩替换 $ document ready function { var el $ "#id" ; el html el html replace word ig "" ; } ; 15 判断元素是否存在 $ document ready function { if $ "#id" length { do something } } ; 16 让div也可以click $ "div" click function { get the url from href attribute and launch the url window location $ this find "a" attr "href" ; return false; } ; how to use