【问题标题】:how to convert html api to react frontend code? [closed]如何将 html api 转换为响应前端代码? [关闭]
【发布时间】: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,我不知道如何在反应内部传递以在我的前端显示类似的内容

【问题讨论】:

标签: javascript html node.js reactjs


猜你喜欢
  • 2013-08-24
  • 2023-02-01
  • 2015-03-06
  • 2010-10-18
  • 1970-01-01
  • 2010-09-19
  • 1970-01-01
  • 2010-10-13
  • 2021-11-17
相关资源
最近更新 更多