我花了很长时间试图弄清楚如何动态更改 iframe src 中的 URL。我尝试设置变量,然后使用字符串插值,但没有成功。
关于我如何做到这一点的任何建议。如果可以的话,也许可以举一些例子。
我正在尝试的示例代码;
src="https://www.wheehouse.org/company/PriceMin={{ this.itemMinimum }}&PriceMax={{ this.itemMaximum }}&BedRange={{ this.itemBedRoomType }}-0&BathRange={{ this.itemBathType }}-0"
Run Code Online (Sandbox Code Playgroud)
谢谢。