經安全檢測,此網站為安全網站,請放心前往原始網址!

trim(), startsWith() and endsWith() in JavaScript? - Javascript FAQ - Tek-Tips

Not so elegant is it? Well, here is a way you could BIND your functions to the data type and call them like in-built functionsà here's how: ... var myStr = ô Earth is a beautiful planet ö; var myStr2 = myStr.trim(); //==ôEarth is a beautiful planetö; if (

www.tek-tips.com

網址安全性掃描由 google 提供