会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
林中有风
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2019年12月15日
用XHR简单封装一个axios
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-e
阅读全文
posted @ 2019-12-15 15:16 林中有风
阅读(397)
评论(0)
推荐(0)
2019年12月13日
js三种存储方式区别
摘要: javaScript有三种数据存储方式,分别是: sessionStorage localStorage cookier 相同点:都保存在浏览器端,同源的 不同点: ①传递方式不同 cookie数据始终在同源的http请求中携带(即使不需要),即cookie在浏览器和服务器间来回传递。 sessio
阅读全文
posted @ 2019-12-13 14:53 林中有风
阅读(504)
评论(0)
推荐(0)
js的委托事件----Vue
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>事件委托</title> </head> <body> <div style="width: 500px;height: 300px;border: 2px s
阅读全文
posted @ 2019-12-13 14:30 林中有风
阅读(554)
评论(0)
推荐(0)
js随机生成ID
摘要: processID = () => { const uuid = 'xxxxxxxx-xxxx-xxxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { const r = Math.random() * 16 | 0, v = c == 'x'
阅读全文
posted @ 2019-12-13 14:11 林中有风
阅读(1013)
评论(0)
推荐(0)
URL.createObjectURL()的使用方法
摘要: URL.createObjectURL() 静态方法会创建一个 DOMString,其中包含一个表示参数中给出的对象的URL。这个 URL 的生命周期和创建它的窗口中的 document 绑定。这个新的URL 对象表示指定的 File 对象或 Blob 对象。 URL.createObjectURL
阅读全文
posted @ 2019-12-13 14:04 林中有风
阅读(5411)
评论(0)
推荐(0)
如何获取input,file里的文件,实现预览效果,并传给后端?
摘要: 单纯的事件与获取 <input type="file" name="file" id="fileUpload"> <img id="preview" src=""/> jQuery $("#fileUpload").change(function () { console.log($("#fileU
阅读全文
posted @ 2019-12-13 13:55 林中有风
阅读(1683)
评论(0)
推荐(0)
函数式编程
摘要: 函数式编程 顾名思义就是不依赖外界影响而变化,只依靠自身的输入和输出来得到自己想要的 例子1 var arr = [{name:'123'}] function add(_arr) { var obj= {name: 'cst'} var newArr = [] for(var i = 0; i <
阅读全文
posted @ 2019-12-13 10:20 林中有风
阅读(98)
评论(0)
推荐(0)
2019年12月11日
go语言中strings包常用方法
摘要: strings.HasPrefix(s string, prefix string) bool:判断字符串s是否以prefix开头 strings.HasSuffix(s string, suffix string) bool:判断字符串s是否以suffix结尾。 strings.Index(s s
阅读全文
posted @ 2019-12-11 23:20 林中有风
阅读(922)
评论(0)
推荐(0)
2019年12月10日
Go--实现两个大数相乘
摘要: import ( "bufio" "fmt" "os" "strings" ) func multi(str1, str2 string) (result string) { if len(str1) == 0 && len(str2) == 0 { result = "0" return } va
阅读全文
posted @ 2019-12-10 23:33 林中有风
阅读(620)
评论(0)
推荐(0)
谷歌插件
摘要: 1. FeHelper 格式化 官网:https://www.baidufe.com/fehelper Github:https://github.com/zxlie/FeHelper ##扩展功能: - JSON自动美化(页面自动检测并格式化) - JSON手动美化(粘贴文本、手动格式化) - J
阅读全文
posted @ 2019-12-10 16:24 林中有风
阅读(206)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告