0
這種靜態鏈接是在Facebook上共享:Thymeleaf:Facebook共享URL
<td><div class="w3-text-white w3-btn w3-indigo w3-hover-blue w3-tiny w3-border"
data-href="https://www.i-koda.com/delivery/dsr?uft=347822&c=348702
https://www.i-koda.com/delivery/dsr?uft=347822&c=348702
https://www.i-koda.com/delivery/dsr?uft=347822&c=$48702
https://www.i-koda.com/delivery/dsr?uft=347822&c=348702"
data- layout="button_count"
data-size="small"
data-mobile-iframe="true">
<a class="fb-xfbml-parse-ignore" target="_blank" style="color:white"
href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.i-koda.com%2Fdelivery%2Fdsr%3Fuft%3D347822%26c%3D348702&src=sdkpreparse">
Share the Results</a></div></td>
不過,我需要爲GET參數(例如插入動態值,... | UFT = $ {user.uft} | ...)。我正在使用Thymeleaf和Spring。
th:data-href似乎不是Thymeleaf屬性。有人能告訴我如何達到預期的效果嗎?