功能: 创建两个线程,一个动态线程和一个静态线程; 一个线程运行完毕后自动被系统删除;另一个线程一直打印计数。 #include <rtthread.h> /* 创建两个线程,一个动态线程,一个静态线程; 一个线程运行完毕自动被系统删除,另一个线程一直打印计数 */ static rt_thread ...
分类:
编程语言 时间:
2020-07-26 19:41:37
阅读次数:
95
将 /tmp/image.iso 这个光碟的 image 档使用 loop 模式挂在 /mnt/cdrom之下。用这种方法可以将一般网络上可以找到的 Linux 光 碟 ISO 档在不烧录成光碟的情况下检视其内容。 #mount -o loop /tmp/image.iso /mnt/cdrom-t ...
分类:
数据库 时间:
2020-07-26 19:12:14
阅读次数:
105
<script type="module"> // 引渠模块export.js import student from "./export.js"; console.log(student) console.log(student.getInfo()) </script> 模块export.js e ...
分类:
其他好文 时间:
2020-07-26 15:11:13
阅读次数:
56
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own ...
分类:
编程语言 时间:
2020-07-26 02:03:02
阅读次数:
95
// item 为 chooseImage 返回的图片 path let buffer = wx.getFileSystemManager().readFileSync(item) wx.cloud.callFunction({ name:'printedTextOCR', data: { buff ...
分类:
微信 时间:
2020-07-26 00:56:32
阅读次数:
103
大部分教程不会告诉你的 12 个 JS 技巧 在这篇文章中,将分享 12 个非常有用的 JavaScript 技巧,可以帮助你写出简洁且高性能的代码。 1. 过滤唯一值 ES6 引入了 Set 对象和延展(spread)语法…,我们可以用它们来创建一个只包含唯一值的数组。 const array = ...
分类:
Web程序 时间:
2020-07-24 23:42:23
阅读次数:
96
bus main.js import Vue from 'vue' const bus = new Vue() export default bus 一、传值 发送信息 import bus from '@/main/bus' 第一个参数为标志变量,第二个参数为通信的值 bus.$emit('mes ...
分类:
其他好文 时间:
2020-07-24 19:01:23
阅读次数:
58
export default class Test extends cc.Component{ //#region 声明 public foo():void; public foo(a:string,b:string):string; public foo(a:number,b:number):nu ...
分类:
其他好文 时间:
2020-07-24 16:12:30
阅读次数:
57
mapState把Store中的state映射到组件中的计算属性 Store文件 import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) export default new Vuex.Store({ state: { msg: 'He ...
分类:
其他好文 时间:
2020-07-24 09:41:52
阅读次数:
65
第一步:找到隐藏文件 ll -a 第二步:编辑文件 vi .bash_profile 第三步:进入编辑模式 i ,修改 export JAVA_HOME=/home/cm/jdk1.8.0_144 第四步:退出编辑模式 esc ,保存修改:wq 第五步:source .bash_profile 第六 ...
分类:
系统相关 时间:
2020-07-23 19:00:19
阅读次数:
137