会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
东城以东
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2020年8月13日
字符串base64与二进制互转(兼容ie8)
摘要: function stringToByte(str) { var bytes = new Array(); var len, c; len = str.length; for (var i = 0; i < len; i++) { c = str.charCodeAt(i); if (c >= 0x
阅读全文
posted @ 2020-08-13 09:42 王小美丶
阅读(1504)
评论(0)
推荐(0)
2020年8月12日
IE8当中base64编码解码(兼容ie8)
摘要: // base64解码 var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var base64DecodeChars = new Array( -1, -1, -1,
阅读全文
posted @ 2020-08-12 09:47 王小美丶
阅读(1129)
评论(0)
推荐(0)
2020年5月29日
React面试题(超详细,附答案)
摘要: 生命周期 组件将要挂载时触发的函数:componentWillMount 组件挂载完成时触发的函数:componentDidMount 是否要更新数据时触发的函数:shouldComponentUpdate 将要更新数据时触发的函数:componentWillUpdate 数据更新完成时触发的函数:
阅读全文
posted @ 2020-05-29 20:20 王小美丶
阅读(6844)
评论(1)
推荐(2)
2020年5月18日
根据后端返回的数据进行中文排序操作
摘要: 最近遇到后端直接给我返回数据类似城市列表,然后需要根据返回的数据进行中文排序,并展示 如图 const arr = [ {brandimg: "http://dummyimage.com/500x500/f2799c/fff.jpg&text=jjokok ", brandname: "北京", b
阅读全文
posted @ 2020-05-18 22:32 王小美丶
阅读(887)
评论(0)
推荐(0)
2020年4月4日
vue之组件(组件之间相互传参)
摘要: 1.全局注册组件 Vue.component('button-cart',{ data () { return { count: 1 } }, template: '<button @click="count++">{{ count }}</button>' }) new Vue({el: '#ap
阅读全文
posted @ 2020-04-04 23:19 王小美丶
阅读(2694)
评论(0)
推荐(0)
mongodb用户权限增删改查
摘要: 1.进入环境 ./mongo 2.切换数据库 use admin 3.添加超级管理员账号密码 db.createUser( {user: "admin",pwd: "123456",roles: [root]}) // user 用户名 pwd 密码 roles 用来设置用户的权限是否支持读写等操作
阅读全文
posted @ 2020-04-04 15:27 王小美丶
阅读(545)
评论(0)
推荐(0)
mongodb添加文件和导出文件
摘要: mongoexport -d test -u admin -p admin -c collection --out test.json --jsonArray // 导出 mongoimport -d test -u admin -p admin -c collection --file test.
阅读全文
posted @ 2020-04-04 14:52 王小美丶
阅读(356)
评论(0)
推荐(0)
2020年4月1日
js中cookie编码解码操作
摘要: tokenCook: (name, value, time) => { // 设置cookie var exp = new Date() exp.setTime(exp.getTime() + time * 60 * 24 * 60 * 1000) // 这里的time就是天数 escape()编码
阅读全文
posted @ 2020-04-01 21:57 王小美丶
阅读(751)
评论(0)
推荐(0)
2020年3月14日
基于node创建api接口
摘要: 1.安装node(已经安装好了可以跳过) 点击此次去下载 2.创建项目 基于node的express 或 koa 在桌面空白处或者其他文件夹空白处 shift+鼠标右键 打开powershell窗口 全局安装express 这里以express为例 npm install express-gener
阅读全文
posted @ 2020-03-14 17:23 王小美丶
阅读(2045)
评论(0)
推荐(1)
改变checkbox样式
摘要: html中的单选框和复选框的丑是有目共睹的 记录下怎么去改变样式 第一步,上html代码 此次label的for的值对应的是你需要操作的input的id <form action=""> <input type="text"><br/><br/> <input type="text"><br/><b
阅读全文
posted @ 2020-03-14 16:43 王小美丶
阅读(699)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告