会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
smile(*^▽^*)
博客园
首页
新随笔
联系
订阅
管理
2024年3月27日
vue3+websocket使用
摘要: websocket介绍:WebSocket是一种基于TCP的网络协议,它支持全双工通信,即客户端和服务器可以在同一连接上进行双向数据传输 1.创建websocket对象,指定websocket服务器地址 var ws=new WebSocket("服务器地址"); 2.是否连接网络 ws.onope
阅读全文
posted @ 2024-03-27 16:43 smile_Lu
阅读(3009)
评论(0)
推荐(0)
2024年2月23日
vue3+vite 移动端适配postcss-pxtorem插件
摘要: 1、安装插件 npm i postcss-pxtorem -D 2、与package.json同级目录创建postcss.config.js文件 module.exports = { plugins: { autoprefixer: { overrideBrowserslist: [ "Androi
阅读全文
posted @ 2024-02-23 10:50 smile_Lu
阅读(2469)
评论(0)
推荐(1)
2024年2月18日
创建vue3项目工程
摘要: 1.vue-cli 创建 ( 基于 webpack ) 查看@vue/cli版本,确保@vue/cli版本在4.5.0以上 vue --version 安装或者升级@vue/cli npm install -g @vue/cli 执行创建命令 vue create 项目名称 运行vue项目 npm
阅读全文
posted @ 2024-02-18 16:16 smile_Lu
阅读(74)
评论(0)
推荐(0)
2023年7月26日
uniapp—— request 封装
摘要: 1.创建request.js uniapi(function_name, obj) { return new Promise((resole, reject)=>{ uni[function_name]({ ...obj, success: res => resole(res), fail:res=
阅读全文
posted @ 2023-07-26 16:15 smile_Lu
阅读(795)
评论(0)
推荐(0)
2023年5月18日
自定义全局监听事件( $on $emit $off )
摘要: app.js App({ handlerGather:{}, onLaunch: function () { const _that = this wx.$on = function (event, fn) { if (Array.isArray(event)) { event.forEach(it
阅读全文
posted @ 2023-05-18 10:43 smile_Lu
阅读(19)
评论(0)
推荐(0)
2022年12月9日
vue拖拽选项,对应板块移动
摘要: html <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>vue拖拽选项,对应板块移动</title> <meta name="viewport" content="width=device-width, i
阅读全文
posted @ 2022-12-09 15:48 smile_Lu
阅读(51)
评论(0)
推荐(0)
2022年7月5日
vue点击导航,对应板块滚动到指定位置
摘要: vue点击导航,对应板块滚动到指定位置
阅读全文
posted @ 2022-07-05 10:22 smile_Lu
阅读(622)
评论(0)
推荐(0)
2022年6月22日
vue中element-ui的表格抖动
摘要: vue中element-ui的表格抖动
阅读全文
posted @ 2022-06-22 15:19 smile_Lu
阅读(614)
评论(0)
推荐(0)
2022年3月7日
uniapp 点击导航,对应内容滑动到指定位置
摘要: uniapp 点击导航,对应内容滑动到指定位置
阅读全文
posted @ 2022-03-07 17:16 smile_Lu
阅读(1211)
评论(0)
推荐(0)
2022年2月23日
uniapp 背景音乐播放/暂停
摘要: uniapp 背景音乐播放/暂停
阅读全文
posted @ 2022-02-23 10:55 smile_Lu
阅读(1138)
评论(1)
推荐(2)
下一页
公告