replace()方法在字符串中用某些字符替換另一些字符。 實例. str="Please visit Microsoft!" var n=str.replace("Microsoft","w3cschool");.
確定! 回上一頁