# AGC Player 小组件开发文档

编写 AGC Player 小组件, 需要具备以下技能:

* 小组件采用 Javascript 编写
* 从网页中抽取数据需要用XPath ( [XPath选择器教程](http://www.w3school.com.cn/xpath/index.asp) )
* 当然我们还可以使用CSS选择器 ( [CSS选择器教程](http://www.w3school.com.cn/cssref/css_selectors.asp) )
* 很多情况下都会用到正则表达式 ( [正则表达式教程](https://www.w3cschool.cn/regexp/) )
* Chrome的开发者工具是神器, 很多AJAX请求需要用它来分析

**注意：小组件 只支持**CJS(CommonJS)模&#x5757;**，**&#x43;JS、CJS、CJS，**重要的事情说三遍 ^\_^**


---

# 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://docs.agcplayer.com/agc-player-xiao-zu-jian-kai-fa-wen-dang.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.
