会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JackieDYH
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
28
29
30
31
32
33
34
35
36
···
98
下一页
2022年5月3日
JavaScript常用字符串方法-面试题
摘要: 一、charAt() 返回在指定位置的字符。 var str="abc"console.log(str.charAt(0))//a 二、charCodeAt() 返回在指定的位置的字符的 Unicode 编码。 var str="abc" console.log(str.charCodeAt(1))
阅读全文
posted @ 2022-05-03 12:00 JackieDYH
阅读(24)
评论(0)
推荐(0)
2022年5月2日
ES6中Promise相关的实战练-习题
摘要: 基础题 01 const promise = new Promise((resolve, reject) => { console.log(1) resolve() console.log(2) }) promise.then(() => { console.log(3) }) console.lo
阅读全文
posted @ 2022-05-02 08:00 JackieDYH
阅读(17)
评论(0)
推荐(0)
2022年5月1日
Vue项目中实现改变屏幕尺寸重新刷新页面-计算页面尺寸
摘要: 效果 在app.vue中设置 方式一 <template> <div id="app"> <router-view /> </div> </template> <script> export default { name: "App", components: {}, data() { return
阅读全文
posted @ 2022-05-01 21:35 JackieDYH
阅读(81)
评论(0)
推荐(0)
2022年4月29日
CSS3一句代码修改网站的主题显示效果的实现
摘要: 黑白灰主题 给body设置滤镜 style="filter: grayscale(100%);" /*样式表内兼容处理*/ html { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: graysc
阅读全文
posted @ 2022-04-29 10:18 JackieDYH
阅读(7)
评论(0)
推荐(0)
2022年4月27日
VsCode-setting.json用户配置
摘要: 安装vsCode prettier插件 管理->设置 setting.json 是自己情况使用下列两个其中一个,可修改对应参数 { "workbench.iconTheme": "vscode-icons", "workbench.startupEditor": "newUntitledFile",
阅读全文
posted @ 2022-04-27 10:11 JackieDYH
阅读(41)
评论(0)
推荐(0)
2022年4月25日
JavaScript中统计数组中相同元素的个数-案例
摘要: 图示说明 代码 //部分数据 [ "220", "220", "220", "220", "220", "220", "220", "220", "220", "220", "0", "0", "0", "0", "0", "0", "0", "0&
阅读全文
posted @ 2022-04-25 10:06 JackieDYH
阅读(25)
评论(0)
推荐(0)
2022年4月19日
Vue中点击url下载文件-案例
摘要: 封装自定义指令将url转成bold,在创建a标签下载blob 代码实现 在src 下面的 directive 文件夹下新建目录 downLoadUrl downLoadUrl / index.js文件 /* * 后端返回文件的url,前端创建a标签来下载 * * 1. 解决了若文件为图片或浏览器支持
阅读全文
posted @ 2022-04-19 10:02 JackieDYH
阅读(109)
评论(0)
推荐(0)
2022年4月18日
Vue项目上绑定变量与字符串拼接-案例
摘要: 示例 <a-textarea :rows="6" style="width: 80%" placeholder="一次最多输入60行,多个换行输入" v-model="form.address_group" /> <span style="float: right; color: #999" >{{
阅读全文
posted @ 2022-04-18 09:57 JackieDYH
阅读(34)
评论(0)
推荐(0)
2022年4月14日
js中用事件委托实现单选下拉列表
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> * { margin: 0; padding: 0; } .wrap { width: 200px; margin
阅读全文
posted @ 2022-04-14 20:59 JackieDYH
阅读(12)
评论(0)
推荐(0)
微信小程序中使用radio单选框--快速修改宽高及选中样式
摘要: 关于多选框设置样式的办法,其实与radio单选框设置的方法一样,唯一不同的是,在css样式里,/* 选中后的 背景样式 (红色背景 无边框 可根据UI需求自己修改) */的下面定义的css需要加上!important才会生效,意思是本css拥有最高权重,但是多选框就不用 <radio-group>
阅读全文
posted @ 2022-04-14 17:40 JackieDYH
阅读(259)
评论(0)
推荐(0)
上一页
1
···
28
29
30
31
32
33
34
35
36
···
98
下一页
公告