Skip to content
Back to skills

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

ASecurity

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

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentsvue

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill 'uniapp-逗号分隔字符串包含检查' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Uniapp 逗号分隔字符串包含检查?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Uniapp 逗号分隔字符串包含检查
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-uniapp/badge)](https://www.skillsdirectory.com/skills/david-li0406-uniapp)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "b9849bb1-b864-4537-8d7f-7b2a49a06523"
name: "UniApp 逗号分隔字符串包含检查"
description: "在UniApp中编写一个方法,用于判断给定的key是否存在于逗号分隔的字符串keys中,要求方法可带参数。"
version: "0.1.0"
tags:
  - "uniapp"
  - "vue"
  - "字符串处理"
  - "方法"
  - "包含判断"
triggers:
  - "keys是逗号分隔的字符串判断包含"
  - "uniapp 写函数判断key是否包含"
  - "isKeyInKeys 可带参数"
  - "逗号分隔字符串查找"
---

# 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 可带参数
- 逗号分隔字符串查找

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…