跳到主要内容

卸载应用程序(app.uninstall)

函数

卸载状态 = app.uninstall(应用程序bundleId)

参数

  • 应用程序bundleId 文本

返回值

  • 卸载状态 布尔型

说明

用于卸载一个应用程序

示例

if app.uninstall("com.nssurge.inc.surge-ios") then
print("卸载成功")
else
print("卸载失败")
end