平台类型,Web 或者小游戏。
1.0.0
import { platform, type TargetType } from 'minigame-std';const type: TargetType = platform.getTargetType();console.log(type); // 'minigame' 或 'web' Copy
import { platform, type TargetType } from 'minigame-std';const type: TargetType = platform.getTargetType();console.log(type); // 'minigame' 或 'web'
平台类型,Web 或者小游戏。