How does nodejs replace the defined variable values in the js file?

var urlParm = "192.168.0.0.1:8088";
fs.readFile("./blockChain/userSignup.html", (err, file) => {
if (err) throw err;
      file.toString.replace(fileUrlParm, urlParm); //
      file.replace($.ajax.url12, urlParm);  
      });
  userSignup.htmlfileUrlParmvar fileUrlParm =  "127.0.0.1:8080" ;
  nodejsfileUrlParmurlParm
  
Mar.04,2021

file.toString change file.toString () , and the result of your relpace will be var 192.168.0.0.1 var 8088 = '127.0.0.1 file.toString 8080' , and this requirement is a little strange.


I think that's what you mean, right?

replace('127.0.0.1:8080', urlParm);
Menu