2019-02-03 20:51:01 +08:00
|
|
|
---
|
|
|
|
title: "系统函数"
|
|
|
|
description: "system 函数提供了系统相关函数,包括判断当前系统平台,文件格式等函数。"
|
2019-10-04 14:13:51 +08:00
|
|
|
lang: zh
|
2019-02-03 20:51:01 +08:00
|
|
|
---
|
|
|
|
|
2020-09-14 22:47:49 +08:00
|
|
|
# [可用接口](../) >> system
|
2019-02-03 20:51:01 +08:00
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [简介](#简介)
|
|
|
|
- [values](#values)
|
|
|
|
- [functions](#functions)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## 简介
|
|
|
|
|
|
|
|
system 函数提供了系统相关函数,包括判断当前系统平台,文件格式等函数。
|
|
|
|
|
|
|
|
## values
|
|
|
|
|
2019-02-19 21:54:05 +08:00
|
|
|
| names | values | descriptions |
|
|
|
|
| --------- | ------ | -------------------------- |
|
2019-02-03 20:51:01 +08:00
|
|
|
| isWindows | 0 or 1 | check if the os is windows |
|
|
|
|
| isLinux | 0 or 1 | check if the os is linux |
|
|
|
|
| isOSX | 0 or 1 | check if the os is OSX |
|
|
|
|
| isDarwin | 0 or 1 | check if the os is Darwin |
|
|
|
|
|
|
|
|
## functions
|
|
|
|
|
2019-02-19 21:54:05 +08:00
|
|
|
| names | descriptions |
|
2019-02-03 20:51:01 +08:00
|
|
|
| ---------- | -------------------------------------- |
|
|
|
|
| fileformat | return the icon of current file format |
|