我在標題中收到錯誤,它僅在第 2 行末尾標記為 ">" 我嘗試將其更改為 /> 或類似的簡單內容,但它似乎根本不起作用...想法是制作一個按鈕這將使用我使用 PHP 提供的 OwnerId 發送 onclick 這個函數。如果確實重要的話 [ownerId] => ec8d1073-544e-4330-bc9c-6fcfc3fe9bab 感謝您的閱讀,如果您發送任何幫助,再次感謝<button onclick="SendCommMessageToOwner(<? echo $comm_data->info->ownerId; ?>)" type="submit" class="elementor-button elementor-size-sm button-color-comm"> // right here <span> <span class=" elementor-button-icon"> </span> <span class="elementor-button-text">?????</span> </span> </button>
HTML 中的 PHP 會產生 SyntaxError: Invalid or Unexpected
慕運維8079593
2023-09-08 10:13:00