2011-09-09 47 views

回答

8

像這樣的事情?

request.replace(/^\&nbsp\;|<br?\>*/gi, "").replace(/\&nbsp\;|<br?\>$/gi, "").trim(); 
+0

很好,謝謝你.. – sathis