为什么这个正则表达式不匹配同一行中的所有实例。如果您查看我链接到的示例中的第4行,jsaction="12345"将不匹配。怎么才能解决呢?^\s*js\w*\s*=\s*\"[^\"]+\"期望输出jsaction="ddd" content on line one jscontent="frame"
jscontroller
当我将这个值赋给"some \n some more“并对其执行console.log()操作时,新行字符不会出现在输出中或console.log(“这是第一行\n,这是s e c o n d ")相同
但是alert(“This is first line And this is the s e c