我有以下字符串:
$("#trip-to").after(
'<div class="disambi">' + '<div class="disambiguation-indicator"></div>' + '<div class="disambiguation-inner-wrapper">' + ' <p><strong> “'+query+ '”.</strong></p>' + ' <p><strong>Did you mean to...</strong></p>' + '<ul>' + suggest + '</ul>' + (count >= 14 ? ' <p><a class="js-disambiguation-show-more" data-parent="to">Show more locations...</a></p>' : '') + '</div>' + '</div>');
resultQuery = query;
我想在一个条件下替换"to"
上面的内容。"from"
我尝试了替换功能,但它没有提供正确的输出....可能是因为太多"
和'
还有什么我错过的吗?