To replace occurrences of a string in JavaScript, use the replace() method − <html> <body> <script> var str1 = 'John loves studying.
確定! 回上一頁