node的内置对象,vue的内置对象

Node.js 内置对象

全局对象

javascript 复制代码
global
process
console
Buffer
__dirname
__filename
require()
module
exports

核心模块

javascript 复制代码
// File System
const fs = require('fs')
fs.readFile()
fs.writeFile()
fs.mkdir()
fs.readdir()

// Path
const path = require('path')
path.join()
path.resolve()
path.basename()
path.extname()

// HTTP/HTTPS
const http = require('http')
http.createServer()
http.request()

// Events
const EventEmitter = require('events')
emitter.on()
emitter.emit()

// Stream
const stream = require('stream')
stream.Readable
stream.Writable
stream.pipe()

// URL
const url = require('url')
url.parse()
url.format()

// Crypto
const crypto = require('crypto')
crypto.createHash()
crypto.createCipher()

Vue 内置对象

全局配置

javascript 复制代码
Vue.config.productionTip
Vue.config.devtools
Vue.config.silent

全局API

javascript 复制代码
Vue.extend()
Vue.component()
Vue.directive()
Vue.filter()
Vue.mixin()
Vue.use()
Vue.nextTick()

实例属性

javascript 复制代码
// 数据
vm.$data
vm.$props
vm.$el
vm.$options
vm.$parent
vm.$root
vm.$children
vm.$refs

// 方法
vm.$watch()
vm.$set()
vm.$delete()
vm.$on()
vm.$emit()
vm.$mount()

生命周期钩子

javascript 复制代码
new Vue({
    beforeCreate() {},
    created() {},
    beforeMount() {},
    mounted() {},
    beforeUpdate() {},
    updated() {},
    beforeDestroy() {},
    destroyed() {}
})

指令

javascript 复制代码
<!-- 内置指令 -->
v-if
v-else
v-else-if
v-show
v-for
v-on (@)
v-bind (:)
v-model
v-slot
v-pre
v-cloak
v-once

特殊属性

javascript 复制代码
key
ref
is
slot
slot-scope
scope
相关推荐
excel18 小时前
HLS TS 文件损坏的元凶:Git 提交与拉取
前端
Aphasia31118 小时前
https连接传输流程
前端·面试
徐小夕18 小时前
万字长文!千万级文档 RAG 知识库系统落地实践
前端·算法·github
梦梦代码精18 小时前
2026年PHP开源商城系统实测对比:架构、多商户、商用授权,谁才是真·省心?
vue.js·docker·架构·开源·代码规范
threelab18 小时前
Three.js 物理模拟着色器 | 三维可视化 / AI 提示词
开发语言·前端·javascript·人工智能·3d·着色器
武器大师7218 小时前
lv_binding_js 代码解读
开发语言·javascript·ecmascript
kyriewen18 小时前
CSS Container Queries:彻底告别 @media 写到手软,附 5 个真实布局案例
前端·css·面试
Patrick_Wilson20 小时前
router.replace 之后紧跟 reload,页面为什么无限刷新?
javascript·react.js·浏览器
小小小小宇20 小时前
OpenMemory MCP
前端