jquery - Javascript code's dfferent behaviour -


i have piece of code

widgetid = "a.b"; func= function(widgetid, tableid, primarycolsearchkey) {     widgetid = test(widgetid); }      test= function(id)     {         id = id.replace(/\./g, "\\.").replace(/ /g, "\\ ").replace(/\(/g, "\\(").replace(/\)/g, "\\)");         return id.replace(/\ /g, "\\ ");     } 

if call in program returns a\\.b, if run w3schools website returns a\.b in ie browser.

can explain why, want return a\.b in code.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

c# - Json.Net Serialize String from URI -

ruby on rails - What is the best design practise to create tables from same controller using same actions -