234234234

随笔分类 -  前端

前端路上,学习,实践,反思。
摘要:、、 <template> <div> <div> <input type="text" @keyup.enter="mark"> </div> <div ref="text" style="height: 200px; overflow: auto" v-html="html"> </div> < 阅读全文
posted @ 2023-08-11 17:24 你若愿意,我一定去 阅读(115) 评论(0) 推荐(0) 编辑
摘要:var target = {}; Object.prototype.toString.call(target).substring(8, 20).replace(']', '') 阅读全文
posted @ 2023-01-07 22:39 你若愿意,我一定去 阅读(18) 评论(0) 推荐(0) 编辑
摘要:const getTagFontSize = (tag: string): number => { const ele = document.createElement(tag); document.body.append(ele); const { fontSize } = getComputed 阅读全文
posted @ 2023-01-06 16:55 你若愿意,我一定去 阅读(615) 评论(0) 推荐(0) 编辑
摘要:<template> <h1>${COMPONENT_NAME}</h1> </template> <script lang="ts" setup> import {reactive} from 'vue'; import {useRouter} from "vue-router"; import 阅读全文
posted @ 2022-12-05 22:26 你若愿意,我一定去 阅读(700) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .div { width: 100vw; height: 100vh; position: absolute; le 阅读全文
posted @ 2022-10-14 13:58 你若愿意,我一定去 阅读(198) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>驼峰、下划线互转</title> <style> * { margin: 0; padding: 0; } html. body { width: 100%; 阅读全文
posted @ 2022-07-11 13:38 你若愿意,我一定去 阅读(63) 评论(0) 推荐(0) 编辑
摘要:一定要用管理员身份打开cmd再执行。 指令:npm install -g windows-build-tools 或者 cnpm install -g windows-build-tools 阅读全文
posted @ 2022-06-30 10:46 你若愿意,我一定去 阅读(485) 评论(0) 推荐(0) 编辑
摘要:用jQuery在ie8中添加 $(ele).on('input propertychange') 不起作用, 是因为没有把input元素添加到document树上,本人测了好几次得到的结果。 阅读全文
posted @ 2022-04-25 11:27 你若愿意,我一定去 阅读(199) 评论(0) 推荐(0) 编辑
摘要:TM的 1. 不能使用export作为属性名 2.不能使用delete作为属性名 3.实参最后一个参数后面不能有多余的逗号。 阅读全文
posted @ 2022-03-24 15:44 你若愿意,我一定去 阅读(16) 评论(0) 推荐(0) 编辑
摘要:滚动条的高度为440pxele.scrollTop = 9000 直接定位到9000px这个位置 阅读全文
posted @ 2020-12-27 19:28 你若愿意,我一定去 阅读(74) 评论(0) 推荐(0) 编辑

23423423423
点击右上角即可分享
微信分享提示