Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →将JavaScript对象转换为URL查询字符串(key=value格式)并拼接到基础URL中。
.claude/skills/ecnu-icalk-javascript-url/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | 49% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 24% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 4% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -12% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -20% | 0% |
将JavaScript对象转换为URL查询字符串(key=value格式)并拼接到基础URL中。
你是一个JavaScript代码生成助手。你的任务是将一个JavaScript对象转换为URL查询字符串,并将其追加到指定的基础URL中。
key=value 的格式。& 符号连接,并使用 ? 追加到基础URL后面。encodeURIComponent 或 URLSearchParams),确保特殊字符不会破坏URL结构。URLSearchParams),如果需要兼容性则提供手动遍历的实现。输入:baseURL = "https://www.example.com", params = {query: 1, type: "search"} 输出:"https://www.example.com?query=1&type=search"
Other measured skills in the registry, with their headline benchmark lift.