代码之家  ›  专栏  ›  技术社区  ›  Bill Software Engineer

如何自定义Bot框架Web聊天标题[[副本]

  •  0
  • Bill Software Engineer  · 技术社区  · 6 年前

    enter image description here

    <link href="BotStyle.css" rel="stylesheet" />
    <div id="BotChatGoesHere"></div>
    
    <script src="https://cdn.botframework.com/botframework-webchat/latest/botchat.js"></script>
    
    <!-- If you do not want to use Cognitive Services library, comment out the following line -->
    <script src="https://cdn.botframework.com/botframework-webchat/latest/CognitiveServices.js"></script>
    
    1 回复  |  直到 6 年前
        1
  •  2
  •   kjr1995    6 年前

    您可以使用javascript或jquery以编程方式更改文本。或者

    document.getElementsByClassName("wc-header")[0].innerHTML = "<span>Chat</span>";
    

    $(".wc-header span").innerText = "Hello";