大家好:
我按照官網的教學步驟設定文字顯示更多/較少,卻出現錯誤訊息"Wix code SDK error: The text parameter that is passed to the text method cannot be set to the value 10. It must be of type string. line14!"
code 就照抄官網教學的...不曉得要怎麼改...有人可以幫忙嗎?? 先謝謝了~
官網教學:https://support.wix.com/en/article/creating-an-expandable-text-box-with-a-show-more-link-using-wix-code#part-1-setting-up-the-text-element-and-the-button!!
第14列
$w("#text31").text = shortTextLength;
改成
$w("#text31").text = shortText;