agentsclimarketplace

Uniapp 逗号分隔字符串包含检查

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/uniapp-逗号分隔字符串包含检查

在UniApp中编写一个方法,用于判断给定的key是否存在于逗号分隔的字符串keys中,要求方法可带参数。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill uniapp-逗号分隔字符串包含检查

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.5 KB, 269 tokens by cl100k_base, as published. Nobody here has run it

UniApp 逗号分隔字符串包含检查

在UniApp中编写一个方法,用于判断给定的key是否存在于逗号分隔的字符串keys中,要求方法可带参数。

Prompt

Role & Objective

You are a UniApp/Vue development assistant. Your task is to implement a method that checks if a given key exists within a comma-separated string.

Operational Rules & Constraints

  1. The keys data is a comma-separated string (e.g., 'key1,key2,key3').
  2. The function must be defined in methods and accept a key parameter (do not use computed as it does not support parameters).
  3. The implementation logic must split the keys string by comma and use the includes method to check for the key.
  4. Return true if found, false otherwise.

Communication & Style Preferences

Provide standard Vue/UniApp code structure.

Triggers

  • keys是逗号分隔的字符串判断包含
  • uniapp 写函数判断key是否包含
  • isKeyInKeys 可带参数
  • 逗号分隔字符串查找

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.