首页 > 其他分享 >tmp

tmp

时间:2024-05-05 09:33:44浏览次数:11  
标签:tmp core name bundler js esm runtime

<template>
  <h2>名字: {{ name }}</h2>
  <h2>年龄: {{ age }}</h2>
  <button @click="changeName">修改名字</button>
  <button @click="changeAge">修改年龄</button>
  <button @click="showTel">查看联系方式</button>
</template>

<script lang="ts">
  export default {
    name: 'Person',
    setup() {
      let name = 'lc'
      let age = 22
      let tel = '123456'
      function changeAge() {
        name = 'hackerdvd'
      }
      function changeAge() {
        age += 1
      }
      function showTel() {
        alert(tel)
      }
      return {name, age, tel, changeAge, changeName, showTel}
    }
  }
</script>

Uncaught ReferenceError: changeName is not defined
    setup Person.vue:25
    callWithErrorHandling runtime-core.esm-bundler.js:195
    setupStatefulComponent runtime-core.esm-bundler.js:7630
    setupComponent runtime-core.esm-bundler.js:7591
    mountComponent runtime-core.esm-bundler.js:5917
    processComponent runtime-core.esm-bundler.js:5883
    patch runtime-core.esm-bundler.js:5351
    componentUpdateFn runtime-core.esm-bundler.js:6027
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:6151
    setupRenderEffect runtime-core.esm-bundler.js:6161
    mountComponent runtime-core.esm-bundler.js:5929
    processComponent runtime-core.esm-bundler.js:5883
    patch runtime-core.esm-bundler.js:5351
    render2 runtime-core.esm-bundler.js:6672
    mount runtime-core.esm-bundler.js:3938
    mount runtime-dom.esm-bundler.js:1535
    <anonymous> main.ts:4
Person.vue:25:41
    setup Person.vue:25
    callWithErrorHandling runtime-core.esm-bundler.js:195
    setupStatefulComponent runtime-core.esm-bundler.js:7630
    setupComponent runtime-core.esm-bundler.js:7591
    mountComponent runtime-core.esm-bundler.js:5917
    processComponent runtime-core.esm-bundler.js:5883
    patch runtime-core.esm-bundler.js:5351
    componentUpdateFn runtime-core.esm-bundler.js:6027
    run reactivity.esm-bundler.js:177
    update runtime-core.esm-bundler.js:6151
    setupRenderEffect runtime-core.esm-bundler.js:6161
    mountComponent runtime-core.esm-bundler.js:5929
    processComponent runtime-core.esm-bundler.js:5883
    patch runtime-core.esm-bundler.js:5351
    render2 runtime-core.esm-bundler.js:6672
    mount runtime-core.esm-bundler.js:3938
    mount runtime-dom.esm-bundler.js:1535
    <anonymous> main.ts:4

标签:tmp,core,name,bundler,js,esm,runtime
From: https://www.cnblogs.com/hacker-dvd/p/18173221

相关文章

  • 【网络通信】Windows搭建RTMP视频流服务器(含推流/拉流详细教程)
    ​        RTMP(Real-TimeMessagingProtocol)是一种用于实时流媒体传输的网络协议,主要用于传输音频、视频和数据。RTMP最初是由AdobeSystems公司开发的,用于其Flash平台和AdobeMediaServer,但随着技术的发展和开源社区的推动,RTMP已经成为了一个广泛使用的流媒体传输协......
  • 【网络通信】一文读懂网络应用层常见协议的区别(HTTP 、HTTPS、MQTT、FTP、RTSP、RTMP)
        应用层协议是计算机网络中至关重要的组成部分,它们定义了应用程序如何与网络进行交互,实现数据的传输、接收和处理。本文将重点介绍几种常见的应用层协议:HTTP、HTTPS、MQTT、FTP、RTSP和RTMP,分析它们的特点、区别、工作原理以及应用场景。一、HTTP协议      ......
  • Docker(十五)-Docker的数据管理(volume/bind mount/tmpfs
    Docker提供了三种不同的方式用于将宿主的数据挂载到容器中:volumes,bindmounts,tmpfsvolumes。当你不知道该选择哪种方式时,记住,volumes总是正确的选择。volumes是Docker数据持久化机制。bindmounts依赖主机目录结构,volumes完全由Docker管理。Volumes有以下优点:Volumes更容易备......
  • Docker(十五)-Docker的数据管理(volume/bind mount/tmpfs)
    Docker提供了三种不同的方式用于将宿主的数据挂载到容器中:volumes,bindmounts,tmpfsvolumes。当你不知道该选择哪种方式时,记住,volumes总是正确的选择。volumes是Docker数据持久化机制。bindmounts依赖主机目录结构,volumes完全由Docker管理。Volumes有以下优点:Volumes更容易备......
  • 直播协议详解 RTMP、HLS、HTTP-FLV、WebRTC、RTSP
    直播协议详解rtmp、hls、http-flv、WebRTC、rtsp 本期我们详细讨论直播的相关协议,包括:HTTP-FLV、HLS、RTMP、Web-RTC、RTSP等等。我们将会详细介绍这些协议的工作原理、应用场景、及延迟的原因。我们按这样的顺序讨论​:RTMP、HTTP-FLVHLSWeb-RTCRTSP一、RTMP、HTTP-FLV......
  • tmp2
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width,initial-scale=1.0"><title>RabbitMQClusterManagemen......
  • tmp
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width,initial-scale=1.0"><title>RabbitMQClusterManagemen......
  • Window下SRS流媒体服务器的搭建+RTMP视频推流
     一、前期准备SRS流媒体服务器无法直接在Windows上运行,依赖于Linux内核环境,一般需要下载虚拟机。本文采用Docker作为容器,打开win自带的Hyper-V虚拟机。在安装docker之前先要打开window的虚拟机。 1.1 开启Hyper-V(1)“控制面板”——“程序”—......
  • MySQL数据库报错:Can‘t create/write to file ‘/tmp/ibXXX‘ (Errcode: 13 - Permiss
    在进行MySQL数据库的安装和配置过程中,用户有时会遇到各种错误信息,这些错误可能会阻碍安装过程或初次运行。理解和解决这些错误对于确保数据库平稳运行至关重要。本文旨在探讨MySQL安装过程中可能出现的一个特定错误,提供关于该错误的详细信息、可能的原因及相应的解决方案。......
  • windows下nginx-rtmp-module的编译方法
    ForewordLinux为当前nginx添加rtmp模块非常的方便,sudo./configure--add-module+sudomake就完事儿了,但是windows比较复杂,没有包管理器,所以各个模块的源码要自己找,下面是我在windows11下的nginxwithrtmpmodule的编译记录。编译器工具链大概有msvctoolchain,perl......