我不知道它是否滿足你的需求,但也許你可以用從磚dispalyHTML函數,用它來顯示html也引導使它容易。是這樣的。
displayHTML (" " href = " https://cdn.jsdelivr.net/npm/ " <鏈接(電子郵件保護)/ dist / css / bootstrap.min。css樣式表" rel = " "誠信= " sha384-EVSTQN3 / azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC匿名“crossorigin = > < script src = " https://cdn.jsdelivr.net/npm/(電子郵件保護)/ dist / js / bootstrap.bundle.min。js“誠信= " sha384-MrcW6ZMFYlzcLA8Nl + NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP + JcXn / tWtIaxVXM“crossorigin =“匿名”> < /腳本> < div class = "拉" > <按鈕類=“btn btn-secondary dropdown-toggle " type = "按鈕" id = " dropdownMenuButton1 " data-bs-toggle =“下拉”aria-expanded =“false”>下拉按鈕< /按鈕> < ul類=“下拉菜單”aria-labelledby =“dropdownMenuButton1”風格= " heigth: 100 px”> <李> < class = " dropdown-item " href = " # " >行動< / > < /李> <李> < class = " dropdown-item " href = " # " >另一個動作< / > < /李> <李> < class = " dropdown-item " href = " # " >別的這裏< / > < /李> < / ul > < / div > " " ")