一、基础 API
获取系统信息:
wx.getSystemInfo(Object object)与wx.getSystemInfoSync(Object object)
wx.getSystemInfoSync为同步API,即wx.getSystemInfo的同步版
success参数:
1、异步获取系统信息wx.getSystemInfo(Object object):
2、同步获取系统信息wx.getSystemInfoSync(Object object):
调试API
console系列:向调试面板中打印日志。console 是一个全局对象,可以直接访问。在微信客户端中,向 vConsole 中输出日志。