Hive列转行: select school,concat_ws('|',collect_set(name)) as name from tmp_01 group by school; 注意:collect_set 有重复的会去重, collect_list 有重复的不去重 hive行转列: sel ...
分类:
其他好文 时间:
2021-06-19 19:05:46
阅读次数:
0
本文介绍N-API中的Promise功能的使用。Promise相关的API一共有四个。在回调里,通过napi_resolve_deferred或napi_reject_deferred修改Promise(deferred)的状态,这时候,js层的回调就会被执行。以上就是N-API中关于Promise ...
1、二进制流转换成文件流 const file = new window.File([data],name) // data二进制文件,name:文件名称 2、转换成formData格式 var formData = new FormData(); formData.append("file", f ...
分类:
Web程序 时间:
2021-06-19 18:59:24
阅读次数:
0
0、总结 参考:https://blog.csdn.net/eric_lh/article/details/78994461 1、定义 参考:https://blog.csdn.net/qq_48736958/article/details/114543957 ① 导数: 反映的是函数y=f(x)在 ...
分类:
其他好文 时间:
2021-06-19 18:57:14
阅读次数:
0
获取原生的DOM的方式 <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script src="../vue-router.js"></scr ...
分类:
Web程序 时间:
2021-06-19 18:51:18
阅读次数:
0
生产者-消费者ArrayBlockingQueue是一个实现了BlockingQueue接口的类,其可以很方便的实现生产者-消费者模式。用法如下: class Producer implements Runnable { private final BlockingQueue queue; Prod ...
分类:
其他好文 时间:
2021-06-19 18:48:33
阅读次数:
0
BOOL IsFolderEmpty(string path) { string str = path + "\\*.*"; CFileFind ff; BOOL bFound; bFound = ff.FindFile(str.c_str()); while (bFound) { bFound = ...
分类:
编程语言 时间:
2021-06-19 18:41:36
阅读次数:
0
首先安装axios npm install axios --save 在src下新建utils文件夹 再新建request.js文件 //utils->request.js import axios from 'axios' const requests = axios.create({ baseU ...
分类:
移动开发 时间:
2021-06-18 20:13:16
阅读次数:
0
直接引入就好了~ <script src="https://unpkg.com/vconsole/dist/vconsole.min.js"></script> <script> // VConsole 默认会挂载到 `window.VConsole` 上 var vConsole = new wi ...
分类:
移动开发 时间:
2021-06-18 20:12:57
阅读次数:
0
Vue.js 允许你自定义过滤器,可被用于一些常见的文本格式化。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, ini ...
分类:
Web程序 时间:
2021-06-18 20:08:22
阅读次数:
0