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