---
title: "Flex TextInput 禁止输入特殊字符 "
author: "stonejava"
date: "2010-06-17T10:27:14Z"
tags: []
categories: ["Web前端"]
slug: "flex-textinput"
draft: false
lastmod: "2010-06-17T10:27:14Z"
id: 692892
url: "https://stonejava.iteye.com/blog/692892"
---

**Flex TextInput 禁止输入特殊字符**

&lt;mx:TextInput  restrict="^\\~\\!\\@\\#\\$\\%\\\*\\(\\)\\\_\\+\\-\\=\\！\\￥\\…\\(\\)\\&\\^"/&gt;