我不知道为什么,但 Chrome 开发工具正则表达式测试每次调用都会返回不同的结果。我将此作为要测试的字符串:
SELECT tbl_school.id AS tbl_school_id, school, tbl_students.id AS tbl_students_id, name, hobby, school_id, course_id FROM tbl_school, tbl_students WHERE tbl_school.id = 's' dd
ORDER BY tbl_school.id ASC
where 正则表达式是:
var where_regex = /where/ig
这是结果的屏幕截图,您可以看到它每次调用时都会发生变化,但我没有更改字符串中的任何内容。我真的很感激对此的解释