会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
234234234
油爵
你若愿意,我一定去
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
17
下一页
2021年11月16日
nodejs 一个简单的web服务器,用于前端自己快速测试部署
摘要: (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)
2021年11月11日
vue3 父子组件之间的数据双向绑定
摘要: 父组件: 直接使用 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)
2021年11月10日
vite + vue3 + antd 实现国际化
摘要: 一引入 : 因为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)
2021年11月2日
em和rem
摘要: --- --------------------------- --------------------------------------------------------------------------------------
阅读全文
posted @ 2021-11-02 14:08 ukeepgoing
阅读(31)
评论(0)
推荐(0)
2021年10月30日
uniapp小程序 插槽 使用 template 失效!
摘要: 只有默认插槽,不知道哪里问题,在编译到微信小程序开发者工具里面调试时。使用的template包裹的元素有时消失,有时又能显示。 无奈只能去掉template,但有时候需要用到插槽里面的数据,那怎么办,卧槽了。
阅读全文
posted @ 2021-10-30 18:18 ukeepgoing
阅读(885)
评论(0)
推荐(0)
2021年8月21日
大半夜睡不着,来个雪花动画
摘要: 效果: <!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)
2021年6月16日
opencv 修改像素为透明色
摘要: 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)
2021年5月15日
C++ unsigned char 和 char 的转换示例(数组没试)
摘要: #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)
2021年5月9日
切割矩形,C++版
摘要: #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)
2021年5月6日
清除blob生成图片的缓存
摘要: 一般是在图片加载完成之后再释放,就是用了之后再释放。 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