replace(/'/ig,"\'\'")

来源:百度知道 编辑:UC知道 时间:2024/06/14 14:30:40
这个是什么意思 只知道好像应该是替换用的 不知道具体在替换什么 刚学 新手 有知道的吗 告诉一声 谢谢啦

replace(/'/ig,"\'\'")这是错误的表达式

Replace(expression, find, replacewith[, start[, count[, compare]]])
例如Replace("cjsworld", "cjs", "CJS")表示在"cjsworld"中将"cjs"替换为"CJS".这3个参数是必须的.