JavaScript, Programming JavaScript – 取代字串 elvisyip2020-04-292023-05-11 var text = "abc 123asdasd abc asdfnj3 "; var newText = text.split("abc").join("cba"); //將abc 取代為cba