公園裡的震撼教育
jQuery - replace all instances of a character in a string - Stack Overflow公園裡的震撼教育 話說夏天的某個週末,我和老公還有一群朋友坐在一個開放式公園花壇邊聊天,我和老公還有另外一個男性朋友並排坐著。這時跑來一個賣花的小妹妹,她看了看我們3個人後,就對著我老公說,哥哥買朵花給姐姐吧。我老公剛想拒絕,誰知坐旁邊的男性朋友突然抱著我老公的胳膊,撒嬌狀地說,買一朵吧,人家想要嘛The biggest question I have, right now, is why are you making a jQuery object from a string, instead of "some+multi+word+string".replace(/\+/g,' ');? Oh, and take a read of Mozilla Developer Network's 'Regular Expressions' page. It's helpful, and expl...
全文閱讀