網上各種方法都用過了,點擊分享出去的鏈接再次分享還是不出縮略圖。
包括已經失效的meta標籤,url=window.location.href.split('?')[0],encodeURIComponent等等各種方法
於是想到了一個非常不友好的解決辦法,竟然實現了
大佬勿噴,也歡迎聯繫幫我解決問題
就是這行代碼:
if(window.location.href.split('?').length>1){
window.location.href = window.location.href.split('?')[0]
}