您可能正在窃笑。我正在为我正在制作的基于Socket.IO的Angular色扮演游戏创建一张大map。这是愚蠢的吗?我知道我可以使用5行代码创建二维数组,但我需要数组中包含不同的数字。例如,0=允许步行到,1=不允许步行到。想象一下这些数字变化很大,0、1等等。如果有更好的方法请告诉我。也许是一种从文本文件或其他东西中读取的方法?varmap=[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0
在Ember-CLI1.13.1中,我的组件中有以下集成测试:import{moduleForComponent,test}from'ember-qunit';importhbsfrom'htmlbars-inline-precompile';moduleForComponent('category-tabs','Integration|Component|categorytabs',{integration:true});test('tappingbuttonfiresanexternalaction',function(assert){this.on('onTabTouch',fu