我的vue项目中有一些组件。我不喜欢importloaderfrom'@/components/someComponent1/someComponent1.vue';因为要写的东西很多而且我必须为每个组件重复一遍。所以我为components文件夹写了一个index.js:export{defaultassomeComponent1}from'./someComponent1/someComponent1.vue';export{defaultassomeComponent2}from'./someComponent2/someComponent2.vue';...这将允许我在一行中导
通常在使用Dagger2和android时,我有以下内容:@Singleton@Component(modules={ApplicationModule.class})publicinterfaceApplicationComponent{voidinject(MainActivityactivity);}publicclassMainActivityextendsActivity{@InjectSharedPreferencesmSharedPrefs;@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCrea