会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zongkm
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
11
下一页
2022年11月14日
全屏
摘要: 参考网页https://developer.mozilla.org/zh-CN/docs/Web/API/Document/exitFullscreen 具体 document.onclick = function (event) { if (document.fullscreenElement)
阅读全文
posted @ 2022-11-14 19:57 zongkm
阅读(196)
评论(0)
推荐(0)
2022年11月11日
去掉字符串最后一位
摘要: 代码 Number(value.slice(0, value.length - 1)
阅读全文
posted @ 2022-11-11 09:37 zongkm
阅读(35)
评论(0)
推荐(0)
2022年11月7日
标头不同的网页,互相传值 通过内存什么的
摘要: +在旧页面要跳转的地方 goHome() { window.location.href = "http://xxxxxxxxxxxxxxxxxxx/?token=" + localStorage.getItem("token") + "&username=" + localStorage.getIt
阅读全文
posted @ 2022-11-07 17:42 zongkm
阅读(17)
评论(0)
推荐(0)
关于接口 api js文件 用接口 (form-model输入框input校验)
摘要: 先写一下api里面的js吧 一般post的就是存一些数据给接口,接口本身可能也有数据 一般get的就是通过关键字,拿接口里面的数据 ####我看见的文本 js里面 因为需要把数据给接口,所以data:data 可以简写成data export function changePassword(data
阅读全文
posted @ 2022-11-07 17:26 zongkm
阅读(50)
评论(0)
推荐(0)
不同组件的传值
摘要: 1.js文件 import Vue from "vue"; const EventBus = new Vue(); export default EventBus; 接受传值的地方 import EventBus from "../utils/event-bus"; EventBus.$on("re
阅读全文
posted @ 2022-11-07 16:31 zongkm
阅读(18)
评论(0)
推荐(0)
模板 插槽类
摘要: 1 最普通的 scopedSlots: { customRender: "currency" }, align: "center", <template slot="currency" slot-scope="text"> <div v-if="text"> <div>{{ text }}</div
阅读全文
posted @ 2022-11-07 10:26 zongkm
阅读(16)
评论(0)
推荐(0)
2022年10月18日
css3 选择器内核相关
摘要: -webkit- Safari, 谷歌浏览器等使用Webkit引擎的浏览器 -moz- 火狐等使用Mozilla浏览器引擎的浏览器 -o- Opera浏览器 -ms- Internet Explorer 浏览器
阅读全文
posted @ 2022-10-18 20:06 zongkm
阅读(13)
评论(0)
推荐(0)
sass
摘要: sass (用的居多) 1、基于Ruby语言 1.1 mac系统不需要下载 1.2 windows系统就需要下载ruby这个软件了,进行安装 下载安装地址:https://www.sass.hk/install/ 2、使用的时候咱们用的是scss 3、sass语法 3.1 变量 : $变量名称:值;
阅读全文
posted @ 2022-10-18 19:59 zongkm
阅读(118)
评论(0)
推荐(0)
less语法格式
摘要: ###语法格式查询网站:http://lesscss.cn/ ##less的语法格式一、变量 @变量名称:值; 二、运算符 + - * /三、自定义函数 定义: .函数名称(形参){ 函数体 } 调用: .函数名称(实参) 四、嵌套 div{ color:red; ul{ list-style: n
阅读全文
posted @ 2022-10-18 19:31 zongkm
阅读(111)
评论(0)
推荐(0)
2022年10月17日
本地存储 最近搜索记录
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>
阅读全文
posted @ 2022-10-17 15:41 zongkm
阅读(11)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
11
下一页
公告