javascript - error: TypeError: Cannot call method 'replace' of undefined -


I am trying to change the substitution of each other using this code:

 < Code> var body = 'message:' + req.query.message.replace ('/ (?: \ R \ n | \ r | \ n) / g', '

However, in this way I get this error message on the line:

  Type error: the method is not replaced by the 'replace' I was not able to find the solution to use javascript to fix it. What I found is only related to jQuery. 

How to determine any great idea, please?

It is saying that qqquery.message is undefined. You should know why it is undefined.


Comments

Popular posts from this blog

GO: Serve static pages -

java - how to parse a JSON string into ObjectNode in Jackson? -

Folder list php -