contenteditable
发表于|更新于
|浏览量:
要随时牢记在心中:决心取得成功比任何一件事情都重要。——林肯
只要给html标签添加一个属性叫contenteditable,即可点击进行编辑:
1 | <div contenteditable>ruben</div> |


相关推荐
2023-01-22
一个js视差动画
人生碌碌,竞短论长,却不道荣枯有数,得失难量。——《浮生六记》 分享一个js视差动画:https://codepen.io/isladjan/details/abdyPBw 滑动会出现各种动画效果,非常的好玩
2022-04-04
vercel
请给我勇气和欢愉,我要攀登这一天的顶峰。——博尔赫斯 vercel可以快速开发前端网站然后一键部署 网址:https://vercel.com/ 进来后我们登陆了可以看到控制台,创建一个应用 我这里选择一个nuxt.js的模板,点击create 我们的代码就已经自动clone到我们的github仓库中了 此时开始了自动部署 在一阵烟花特效后,点击Go to Dashboard可以回到控制台 进入我们的应用 点击visit即可访问 完成
2021-06-02
关于wx.getUserInfo获取到匿名数据的坑
生命的黎明是乐园,青春才是真正的天堂。——华兹华斯 今天搞了很久,发现使用wx.getUserInfo获取到的用户昵称一直是:“微信用户”,并且头像也是默认的。。。 然后官方文档里发现 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html 打开后是这个页面 然后我们看wx.getUserProfile的文档: wx.getUserProfile只能在页面产生点击事件(例如 button 上 bindtap 的回调中)后才可调用每次请求都会弹出授权窗口,用户同意后返回 userInfo。该接口用于替换 wx.getUserInfo,详见 用户信息接口调整说明。 注意desc是必填 我们配置好appid后 调用wx.getUserProfile 代码如下 12345678910111213141516171819202122232425262728<template> <view style="width:1...
2024-10-07
typescript-exercises
要随时牢记在心中:决心取得成功比任何一件事情都重要。——林肯 分享一个学习typescript练习的开源项目 github: https://github.com/typescript-exercises/typescript-exercises 网站: https://typescript-exercises.github.io/ 这里有不同的练习,目前是16个,例如: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103/*Welcome to: ................................................................ . ...
2022-05-18
CompositionEvent
业余生活要有意义,不要越轨。——华盛顿 分享一个输入法事件:CompositionEvent 这个事件只在用户间接输入文本(如使用输入法)时触发: 例如下面这个例子: 123456789101112131415161718192021222324252627282930313233343536<!DOCTYPE html><html><head> <title></title></head><body> <div class="control"> <label for="name">On macOS, click in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> ...
2024-11-10
typescript-exercises(十五)
人的一辈子都在高潮—低潮中浮沉,唯有庸碌的人,生活才如死水一般。——傅雷 问题: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051/*Intro: Our attempt to Open Source didn't work quite as expected. It turned out there were already many existing functional JS libraries. All the remaining developers left the company as well. It seems that they are joining a very ambitious startup which re-invented a juicer and raised millions of dollars. Too bad we cannot compe...
