简体中文
外观
NSBundle.mainBundle
mainBundle 静态属性是 App 自己的包。
mainBundle
NSBundle。
NSBundle
TypeError
console.log(NSBundle.mainBundle === NSBundle.mainBundle, NSBundle.mainBundle.bundlePath.endsWith('.app'));
结果:输出 true true。
true true
NSBundle.mainBundle。