会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
poder
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2022年1月23日
event.target和event.currentTartget
摘要: event.target指向触发事件的dom对象,有冒泡影响 event.currentTarget最终捕获事件的对象
阅读全文
posted @ 2022-01-23 01:36 poder
阅读(39)
评论(0)
推荐(0)
2022年1月21日
JavaScript不用获取元素,直接通过id操作dom
摘要: 任意写一个div,任意设置id test 打印出window对象,发现window.document.all下面挂载了test 使用document.getElementById('test')获取id为test的元素 因为window是默认的全局对象,所以可以简写,原来是window.docume
阅读全文
posted @ 2022-01-21 02:40 poder
阅读(243)
评论(0)
推荐(0)
2022年1月17日
Node.js express 中间件
摘要: 先注册的全局中间件先执行 全局中间件全部执行后,执行局部中间件 app.get("./", [mw1,mw2, mw3], (req, res)=>{}) app.get("./", mw1, mw2, mw3,(req,res)=>{}) 按先后顺序执行局部中间件 两种方式等价 所有中间件共享同一
阅读全文
posted @ 2022-01-17 13:14 poder
阅读(36)
评论(0)
推荐(0)
2021年12月26日
JavaScript根据对象的key获取value
摘要: var obj = {name:"test",age:999} console.log(obj["name"],obj["age"]);
阅读全文
posted @ 2021-12-26 14:25 poder
阅读(1081)
评论(0)
推荐(0)
2021年12月15日
JavaScript快速更改数组内一个或多个对象的属性名
摘要: let arr = JSON.parse(JSON.stringify('arrName').replace(/oldName1/g,'newName1').replace(/oldName1/g,'newName2'))..............;//可以链式编程
阅读全文
posted @ 2021-12-15 20:40 poder
阅读(467)
评论(0)
推荐(0)
2021年12月12日
vue-cli打包后访问
摘要: config index.js assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPath: '/', assetsPublicPath: '/',改成 assetsPu
阅读全文
posted @ 2021-12-12 14:39 poder
阅读(41)
评论(0)
推荐(0)
2021年12月11日
jsp页面乱码
摘要: 添加 <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
阅读全文
posted @ 2021-12-11 12:43 poder
阅读(27)
评论(0)
推荐(0)
idea启动tomcat乱码
摘要: idea.exe.vmoptions,idea64.exe.vmoptions两个文件 添加 -Dfile.encoding=UTF-8 IDEA中File的Settings下File Encodings改为UTF-8 打开Tomcat目录下的conf 中的server.xml文件; 在server
阅读全文
posted @ 2021-12-11 10:43 poder
阅读(260)
评论(0)
推荐(0)
2021年12月6日
Vue使用axios Cannot read property 'protocol' of undefined!
摘要: 当url是undefined时 当使用Vue.use(axios)时, 正确使用 main.js引入import axios from 'axios'Vue.prototype.$http = axios 组件中使用:this.$http.post()
阅读全文
posted @ 2021-12-06 10:47 poder
阅读(85)
评论(0)
推荐(0)
2021年8月21日
Java for循环 label
摘要: 1 labelll:for (int i = 0; i < 5; i++) { 2 for (int j = 0; j < 5; j++) { 3 System.out.print("#"); 4 //break labelll; continue labelll; 5 } 6 System.out
阅读全文
posted @ 2021-08-21 16:12 poder
阅读(244)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告