我在IntelliJ中创建了一个AIR桌面项目,除src文件夹外,只有项目iml.在Flash Builder中,我曾编辑application.xml来设置应用程序图标.我在IntelliJ 12哪里可以做到这一点?谢谢.
有没有办法在haxe中保存模式?我有几个开关函数,其中一些具有相同的模式,为了使代码更清晰,我想将它们保存到一个公共数组或其他东西.所以我有类似的东西
switch (field) {
case 'x' | 'y' | 'color' : doThis();
}
//...other function...
switch (field) {
case 'x' | 'y' | 'color' : doThat();
}
Run Code Online (Sandbox Code Playgroud)
我希望有类似的东西
myPattern = 'x' | 'y' | 'color';
switch (field) {
case myPattern : doThis();
}
//...other function...
switch (field) {
case myPattern : doThat();
}
Run Code Online (Sandbox Code Playgroud)