【发布时间】:2022-06-10 17:21:29
【问题描述】:
我希望将此 html 代码转换为我传递名称信息的反应代码,然后我会在反应前端得到结果
<script src="//www.squarefoot.com.sg/js/iframeresizer.min.js"></script>
<!-- Replace j93b541us62ngpax78dqefm0rzocythi in the following line with token issued for your domain -->
<script src="//www.squarefoot.com.sg/component/sqftapi?token=j93b541us62ngpax78dqefm0rzocythi&task=js"></script>
<script>
$(document).ready(function(){
squarefoot.load("sqftmain",{
task: "project", **name**: "Compass Heights", type: "r", subtype: "abc", summary: "1", transaction: "1", pricechart: "1", rangechart: "1", rental: "1", map: "1", nearby: "1,1,500,", amenities: "1,1,500,abcdefghijklmnpqr"
});
$("#sqftmain").iFrameResize();
});
</script>
<iframe id="sqftmain" style="background-color:#fcfcfc" frameborder="0" width="100%"></iframe>
目前它是一个 iframe,我不知道如何在反应内部传递以在我的前端显示类似的内容
【问题讨论】:
-
请访问help center,使用tour查看内容和How to Ask。
标签: javascript html node.js reactjs