Vuejs 3 API 文档

编程入门 行业动态 更新时间:2024-10-26 16:24:28
本文介绍了Vuejs 3 API 文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我有兴趣在 Vue.js v3 发布之前深入了解它.某处是否有(WIP)API 文档?喜欢这个:

I'm interested in having a deeper look into Vue.js v3 even before it's released. Is there an (WIP) API documentation somewhere? Like this one:

https://vuejs/v2/api/

我只能找到一些文章和半官方出版物.尝试了这个 repository,但没有名为 dev 之类的分支.

All I could find were some articles and semi-official publications. Tried this repository, but there's no branch named dev or such.

我知道它仍在进行中,但仍然没有内部保存的文档吗?

i know it's still work in progress, but still, is there no in-house kept doc?

推荐答案

自 2020 年 7 月起您可以通过此链接找到 Vue 3 的官方文档 v3.vuejs

你可以查看composition api官方文档,这个文章 来自 vuedose.tips,这个播放列表来自Vue 精通 YouTube 频道或此 YouTube 视频.

You could check the composition api official doc, this article from vuedose.tips, this playlist from Vue mastery youtube channel or this youtube video.

还有一个基本示例,展示了该 api 的外观:

And a basic example that shows how that api looks :

<template>
  <button @click="increment">
    Count is: {{ state.count }}, double is: {{ state.double }}
  </button>
</template>

<script>
import { reactive, computed } from 'vue'

export default {
  setup() {
    const state = reactive({
      count: 0,
      double: computed(() => state.count * 2)
    })

    function increment() {
      state.count++
    }

    return {
      state,
      increment
    }
  }
}
</script>

这篇关于Vuejs 3 API 文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 00:57:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1145019.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文档   Vuejs   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!