0
我正在使用Flex 4.我疯狂地开车。为什么不能继续工作?正则表达式不工作... arghhhh
//在我的应用程序标签:
creationComplete="replaceMe(event)"
//在我的脚本块:
public function replaceMe(event:Event):void{
var str:String = "She sells seashells by the seashore.";
var pattern:RegExp = /sh/gi;
str.replace(pattern, "sch");
test.text = str;
}
我的文字区域(ID = “测试”)说:“她在海边卖贝壳“...... 它应该说”sche在海边销售海边。“