It would be useful to see your code within the onSubmit()
form trigger, I guess you might not be handling the Event properly. Look into using [Event].preventDefault();
, this will stop the form from re-rendering your file2.html before reaching the replace.
Here's a link for the MDN Web Docs.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…