包as3corelib.swc中的StringUtil工具類提供了該功能 import com.adobe.utils.StringUtil; StringUtil.stringsAreEqual(type, "四電工程", true)