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
相关推荐
Data_Journal2 分钟前
Node.js网络爬取指南——简单易上手!
大数据·linux·服务器·前端·javascript
a11177612 分钟前
可视化角色权限配置页面(html 开源)
前端·开源·html
Lee川20 分钟前
个人中心与 AI 头像生成:从页面到 DALL-E 的完整实现
前端·架构
tedcloud1236 小时前
UI-TARS-desktop部署教程:构建AI桌面自动化系统
服务器·前端·人工智能·ui·自动化·github
UXbot9 小时前
AI原型设计工具如何支持团队协作与快速迭代
前端·交互·个人开发·ai编程·原型模式
ZC跨境爬虫10 小时前
跟着MDN学HTML_day_48:(Node接口)
前端·javascript·ui·html·音视频
PieroPc11 小时前
CAMWATCH — 局域网摄像头监控系统 Fastapi + html
前端·python·html·fastapi·监控
巴巴博一12 小时前
2026 最新:Trae / Cursor 一键接入 taste-skill 完整教程(让 AI 前端告别“AI 味”)
前端·ai·ai编程
kyriewen12 小时前
半夜三点线上崩了,AI替我背了锅——用AI排错,五分钟定位三年老bug
前端·javascript·ai编程
kyriewen13 小时前
我让 AI 当了 24 小时全年无休的“毒舌考官”
前端·ci/cd·ai编程