234234234
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: 一引入 : 因为vite支持的模块引入方式为es6的import 但是antd-vue 官网的示例为 import zhCN from 'ant-design-vue/lib/locale/zh_CN.js';这其中有涉及到require,而这require是node才有的。 所以会导致以下错误。 阅读全文
posted @ 2021-11-10 14:20 你若愿意,我一定去 阅读(1839) 评论(0) 推荐(0) 编辑
摘要: --- --------------------------- -------------------------------------------------------------------------------------- 阅读全文
posted @ 2021-11-02 14:08 你若愿意,我一定去 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 只有默认插槽,不知道哪里问题,在编译到微信小程序开发者工具里面调试时。使用的template包裹的元素有时消失,有时又能显示。 无奈只能去掉template,但有时候需要用到插槽里面的数据,那怎么办,卧槽了。 阅读全文
posted @ 2021-10-30 18:18 你若愿意,我一定去 阅读(814) 评论(0) 推荐(0) 编辑
摘要: 效果: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> html,body { width: 100%; height: 100%; } * { margin: 0 阅读全文
posted @ 2021-08-21 03:16 你若愿意,我一定去 阅读(35) 评论(0) 推荐(0) 编辑
摘要: import osimport cv2img = cv2.imread("./test.bmp")# 转成透明度图片img = cv2.cvtColor(img, cv2.COLOR_BGR2BGRA)width, height, channel = img.shapefor i in range( 阅读全文
posted @ 2021-06-16 09:39 你若愿意,我一定去 阅读(1916) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main() { unsigned char uch = 233; char ch = (char)uch; unsigned char nuch = (unsigned char)ch; cout << (i 阅读全文
posted @ 2021-05-15 16:55 你若愿意,我一定去 阅读(1435) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> // 点 class Node { public: int x; int y; }; // 保存每个块的左上角和右下角的坐标 class BlockData { public: Node lp; Node rp; }; // 阅读全文
posted @ 2021-05-09 17:55 你若愿意,我一定去 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 一般是在图片加载完成之后再释放,就是用了之后再释放。 const blob = new Blob([res.data], {type: 'image/jpeg'}); src = window.URL.createObjectURL(blob) // 创建图片 window.URL.revokeOb 阅读全文
posted @ 2021-05-06 11:46 你若愿意,我一定去 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: 因为有需求,需要程序在内存大小保存不变来保存数据,但是数据的取用又是按队列的来操作,节约时间节约内存,但是c++基础又不太好. #include <iostream> #include <string> using namespace std; typedef struct NN { string 阅读全文
posted @ 2021-04-25 15:21 你若愿意,我一定去 阅读(2377) 评论(0) 推荐(0) 编辑
摘要: unsigned int data1[4] = { 1,2,3,4 }; printf("%d\n", data1); int* data = (int*)data1; printf("%d\n", data); 阅读全文
posted @ 2021-04-18 14:25 你若愿意,我一定去 阅读(130) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
23423423423