当前位置: 首页 > article >正文

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

Node.js 内置对象

全局对象

global
process
console
Buffer
__dirname
__filename
require()
module
exports

核心模块

// 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 内置对象

全局配置

Vue.config.productionTip
Vue.config.devtools
Vue.config.silent

全局API

Vue.extend()
Vue.component()
Vue.directive()
Vue.filter()
Vue.mixin()
Vue.use()
Vue.nextTick()

实例属性

// 数据
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()

生命周期钩子

new Vue({
    beforeCreate() {},
    created() {},
    beforeMount() {},
    mounted() {},
    beforeUpdate() {},
    updated() {},
    beforeDestroy() {},
    destroyed() {}
})

指令

<!-- 内置指令 -->
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

特殊属性

key
ref
is
slot
slot-scope
scope


http://www.kler.cn/a/551108.html

相关文章:

  • 高通推出骁龙游戏超级分辨率™:充分释放移动游戏性能,带来更持久的续航
  • windows在wsl ubuntu环境中启用cuda加速AI推理和训练
  • 【DeepSeek 行业赋能】从金融到医疗:探索 DeepSeek 在垂直领域的无限潜力
  • UART(一)——UART基础
  • 云贝餐饮连锁V3独立版全开源+vue源码
  • 领克汽车工厂探秘品牌体验方案拆解
  • 蓝桥杯备赛1-2合法日期
  • 一文掌握Docker基础
  • Cloud: aws:network: limit 含有pps这种限制
  • 渲染相机设置 pyrender cameralib
  • AWS上Amazon Redshift用Zoominfo API验证公司基本信息数据正确性检查设计方案
  • 从二维到三维3D工业相机如何改变机器视觉检测
  • vue3项目实践心得-寻找未被使用的最小编号
  • Maven指南-从入门到精通
  • 动手学深度学习11.7. AdaGrad算法-笔记练习(PyTorch)
  • Linux 下 VIM 编辑器学习记录:从基础到进阶(上)
  • Java 设计模式之命令模式
  • 深入解析 Webpack 的构建流程:一场高级技术冒险
  • 基于豆瓣2025电影数据可视化分析系统的设计与实现
  • c# sqlite 批量生成insert语句的函数