# 錯誤代碼 - ActionScriptError, ScriptError

<figure><img src="https://content.gitbook.com/content/QSPSOmaFPAz7khj6t7Ds/blobs/y5lwcFIamcQoHjtVdRlr/action%20script%201.png" alt=""><figcaption></figcaption></figure>

ActionScriptError 發生於設定中輸入的腳本導致錯誤時。此錯誤通常屬於以下兩種情況：

{% stepper %}
{% step %}

### 一開始運作正常，但網站結構或載入方式改變，導致程式碼失效

（網站變動導致原本的 selector 或互動流程不再適用。）
{% endstep %}

{% step %}

### 從一開始程式碼就寫錯的可能性（選擇器錯誤、語法問題等）

（包含選擇器錯誤、語法錯誤、或不正確的條件邏輯等。）
{% endstep %}
{% endstepper %}

{% hint style="success" %}

### ✅ 如何修復（輸入 CSS 選擇器時） <a href="#how-to-fix-when-entering-a-css-selector" id="how-to-fix-when-entering-a-css-selector"></a>

* 如果是您自己寫的程式碼，請檢查網站的結構或按鈕位置最近是否有變更。
* 如果是使用 AI 工具建立的程式碼，請嘗試重新生成，或檢查點擊目標和條件邏輯。
* 對於 Listly 作為付費服務提供的腳本，在交付後 5 天內如果發生問題，可免費修改一次。之後因網站變更需要修改將需要另外申請並付費。
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.listly.io/docs/zh-hant/support/faq-zh-hant/7.-yi-wang-ye-xie-qu-shi-bai-xun-xi-de-jie-jue-fang-an/cuo-wu-dai-ma-actionscripterror-scripterror.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
