- 博客(9)
- 收藏
- 关注
原创 spring-web.xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springf...
2022-01-22 07:35:44
416
原创 spring-service.xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="ht...
2022-01-22 07:01:39
529
原创 spring-dao.xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http:...
2022-01-22 06:58:32
448
原创 mybatis-config.xml
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <configuration> <settings> <setting name="useGeneratedKeys" va...
2022-01-22 06:45:35
120
原创 函数的name属性 取值函数 存值函数
var person = { sayName() { console.log(this.name); }, get firstName() { return "Nicholas"; } }; person.sayName.name //sayName person.firstName.name // get firstName
2021-07-28 11:54:30
193
原创 函数内部的私有变量(以及对外公开的特权)
function parent(){ this.name="王" } var child=new parent(); alert(child.name) // 王 function parent(){ var name="王" } var child=new parent(); alert(child.name) // un function parent(){ var name="王" this.fun=funct...
2021-07-24 10:23:13
102
原创 匿名函数模拟块级作用域
for(var i=1;i<=5;i++){ } var i; alert(i); 返回结果为6 如果加上匿名函数,就形成了模拟块级作用域 自毁 (function(){ for(var i=1;i<=5;i++){ } })() var i; alert(i); 完全不影响i了!
2021-07-24 10:03:33
156
原创 闭包当中的this
匿名函数中this指向全局! var a="全局"; function parent(){ var a=100; return function(){ return this.a//必须是在这个里面的this ----->指向全局 } } alert(parent()())//返回的是全局的a ...
2021-07-24 09:57:50
110
原创 浅谈ES6
ES6是咱前端必备的技能,不过,你真的理解ES6 的核心新特性吗? 今天来浅谈一下ES5与ES6的箭头函数与对象结构之间的区别有多大吧! 比如使用箭头函数: // ES5箭头函数写法let f = function(v){ return v } // ES6箭头函数写法 let f = v => v ES6 中箭头函数的语法非常简单:标识符=>表达式。代码量可以减少 50%以上。 再比如对象解构: //ES5var obj1 = { a..
2021-07-24 08:54:05
130
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅