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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -