此问题与javascript中的字符串操作有关。可能听起来有些多余,但是我目前在解决此问题方面面临巨大困难。
我有两个字符串(基本上是SQL的WHERE子句)
var QueryOne = (Name != '') AND (date_entered BETWEEN '2018-01-01 00:00:00' AND '2018-12-31 23:59:59') AND (salutation != '');
var QueryTwo = (Name LIKE('%link%')) AND (salutation = '')
我想用QueryTwo扫描QueryOne并希望QueryOne成为
(Name LIKE('%link%')) AND (date_entered BETWEEN '2018-01-01 00:00:00' AND '2018-12-31 23:59:59') AND (salutation = '')
我研究了一些插件,但它们都是差异检查器。我该如何实现?