234234234
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: (node环境)启动命令:node node-web-server.js var http=require('http'); var fs = require('fs'); var url = require('url'); //创建服务器 http.createServer(function(re 阅读全文
posted @ 2021-11-16 09:05 ukeepgoing 阅读(216) 评论(0) 推荐(0)
摘要: 父组件: 直接使用 v-model="值" 子组件:约定写法 this.$emit("update:modelValue", this.numValue); <template> <div class="input inlinebox"> <input type="text" v-model.num 阅读全文
posted @ 2021-11-11 14:28 ukeepgoing 阅读(1199) 评论(0) 推荐(0)
摘要: 一引入 : 因为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 ukeepgoing 阅读(1975) 评论(0) 推荐(0)
摘要: --- --------------------------- -------------------------------------------------------------------------------------- 阅读全文
posted @ 2021-11-02 14:08 ukeepgoing 阅读(31) 评论(0) 推荐(0)
摘要: 只有默认插槽,不知道哪里问题,在编译到微信小程序开发者工具里面调试时。使用的template包裹的元素有时消失,有时又能显示。 无奈只能去掉template,但有时候需要用到插槽里面的数据,那怎么办,卧槽了。 阅读全文
posted @ 2021-10-30 18:18 ukeepgoing 阅读(885) 评论(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 ukeepgoing 阅读(48) 评论(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 ukeepgoing 阅读(2120) 评论(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 ukeepgoing 阅读(1508) 评论(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 ukeepgoing 阅读(417) 评论(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 ukeepgoing 阅读(1184) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
23423423423