tag:blogger.com,1999:blog-5758875416626340717.post7812373412395580535..comments2023-03-14T21:32:26.141+08:00Comments on PHP 程式 學習 筆記本: 增加 javascript 的 trim 函數千江有水千江月http://www.blogger.com/profile/09457834533843066844noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5758875416626340717.post-20632080458848228572008-09-24T18:27:00.000+08:002008-09-24T18:27:00.000+08:00感謝指教~ String.prototype 是否就會變成函數之ㄧ了?感謝指教~ String.prototype 是否就會變成函數之ㄧ了?千江有水千江月https://www.blogger.com/profile/09457834533843066844noreply@blogger.comtag:blogger.com,1999:blog-5758875416626340717.post-67939426783144718572008-09-24T18:24:00.000+08:002008-09-24T18:24:00.000+08:00可以使用 String.prototype.trim = function() { };使用方式為v...可以使用 String.prototype.trim = function() { };<BR/><BR/>使用方式為<BR/>var strTest = 'aaaaa';<BR/>strTest.trim();Anonymousnoreply@blogger.com