Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 948 Bytes

README.md

File metadata and controls

29 lines (16 loc) · 948 Bytes

判断是否首次运行组件

更新于2016.10.2 版本1.0

感谢yunhcl的建议!

内含两个函数

  1. 查询是否首次运行,如果是,返回true并自动标记已运行;如果不是首次运行,则返回false
  2. 清除“已经运行标签”,会使得下次检查“是否首次运行”返回true

原网址:http://www.source-space.cn/down/FirstRun
作者:ColinTree

Check if the first time to run component

Version1.0 Update in Oct.2, 2016

Thanks for your advice yunhcl!

Included two function

  1. Check if it is the first time to run, if it is true, return "true" and set a flag; If it is not the first time(flag existed), Return "false"
  2. Clear the flag, causes returning true if check if it is first time to run

Original Web Page:http://www.source-space.cn/down/FirstRun
Author: ColinTree