Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-study-front-share
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
yifu-study
front
yifu-study-front-share
Commits
c3d04981
Commit
c3d04981
authored
Apr 01, 2022
by
caihaifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update.
parent
4dc4d70a
Pipeline
#15490
canceled with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
TypeScript基础类型.md
source/_posts/TypeScript基础类型.md
+1
-1
jQuery从$开始.md
source/_posts/jQuery从$开始.md
+2
-1
浅谈Proxy.md
source/_posts/浅谈Proxy.md
+2
-0
No files found.
source/_posts/TypeScript基础类型.md
View file @
c3d04981
...
...
@@ -4,7 +4,7 @@ date: 2022/3/31 18:00:00
tags:
-
前端
-
typescript
author: 杨靖
author: 杨靖
---
# TypeScript基础类型
...
...
source/_posts/jQuery从$开始.md
View file @
c3d04981
---
title
:
jQuery从$开始
date
:
2022/03/30 11:25:23
updated
:
2022/03/30 11:25:23
updated
:
2022/03/30 11:25:23
tags
:
-
前端
-
JQuery
...
...
@@ -12,6 +12,7 @@ author: 王许晓
> jQuery requires a window with a document.[jQuery版本3.6.0](https://code.jquery.com/jquery-3.6.0.js)
使用jQuery的第一行代码总是从
`$(document).ready(function(){});`
或者
`$(function(){});`
开始,我从jQuery执行过程去了解$是怎么被识别并被使用的。
<!-- more -->
# jQuery 入口函数
jQuery根据不同的js运行时环境将jQuery实例挂载到不同属性上。如果是浏览器引用,则挂载到window的$上,如果是require方式在例如node.js环境引用,则需要判断当前环境的文档流在哪一层(写此博客时还没有搭建node环境,这里没有做验证,只是想法猜测),jQuery需要运行在有文档流的环境中。
...
...
source/_posts/浅谈Proxy.md
View file @
c3d04981
...
...
@@ -12,6 +12,8 @@ author: 张芳利
众做周知Vue2的双向绑定原理是利用了ES5的一个API
`Object.defineProperty()`
对数据进行劫持,结合发布订阅模式的方式来实现的。
而Vue3 中则是使用了ES6的Proxy 对数据代理。
<!-- more -->
## Vue2 的Object.defineProperty()
1.
定义:
Object.defineProperty()方法会直接在一个对象上定义一个新属性,或者修改一个对象的现有属性,并返回此对象。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment