当我尝试将 html 加载到页面上时,我需要传递一个参数并在加载的 html 中使用它。但是,我不确定如何访问该 URL 参数。
我需要利用传递的参数并根据参数更改 HTML A 内容,使其成为动态 HTML。
这甚至可能吗?
技术资料:
父页面设置 - URL:abc.com - Application React-app 使用 - container.appendChild(range.createContextualFragment(this.state.html_a)); 将 html 内容放置在容器中;
从 - 托管服务器加载 HTML - HTML URL:123.com/html?value=html_a
注意:跨域