... var repText = boldText.replace(text, "xyz"); // [Output] My Site 'xyz' console.log(repText); // assign new text into html <b> tag.
確定! 回上一頁