这个到底应该怎么摆呢,怎么摆都不对,写在index.html里不行,写在App.vue里也不行

news/2024/7/10 1:47:05 标签: vue

App.vue里不行

 <template>
  <div id="counter">
      counter: {{ counter }}
    </div>
</template>

<script>

export default {

   const Counter = {
      data() {
        return {
          counter:0
        }
      }
    }

}

    Vue.createrApp(Counter).mount('#counter')
 

</script>

index.html里,如前所述,也是不行
要用到export和import和router吗?不知道


http://www.niftyadmin.cn/n/957605.html

相关文章

python中numpy.array的用法(list转换,读取,保存)

python中List类型与numpy.array类型的互相转换 import numpy as np List转numpy.array: temp np.array(list) numpy.array转List: arr temp.tolist() Python中数据的保存和读取 保存 numpy.save() 和 numpy.load()numpy.save(arg_1,arg_2) 需要两个参数&#xff0…

解决 win7 arcgis 10.2发布服务显示打包成功,发布失败unable to connect to publishing tools service问题

我的操作系统是win7系统&#xff0c;之前在虚拟机安装arcgis 10.2并发布服务没问题。 然而在win7系统安装arcgis10.2发布服务的时候&#xff0c;遇到这么一个棘手的问题。 发布失败的原因是publishing tools这个工具没启动&#xff0c;所以当然去启动啦。 但事与愿违 果然出问…

Mobaxterm连接虚拟机中Linux

Mobaxterm连接虚拟机中Linux Mobaxterm软件一只&#xff0c;Linux系统一只。 首先启动Linux系统。 打开终端 输入ifconfig命令&#xff0c;查看本机IP&#xff1b; 打开MobaXterm,步骤如下&#xff0c;操作完毕点击ok。 下一步输入密码&#xff0c;密码是不显示的&#xff0c…

doc文件批量转换成htm以及htm批量转成xlsx

现需把一批doc文件格式转换成xlsx&#xff0c;中间需要转换一次htm文件。 当然我首先想到的是直接修改后缀名&#xff0c;写一个bat文件&#xff0c;方便快捷是吧&#xff1f; 上天可不让你这么好过&#xff0c;直接修改后缀名后会损坏文件&#xff0c;所以要怎么办&#xff…

终于出来了Counter: 0,但是是html里的,不是通过vite项目做的,怎么做还不知道

html里的 引用vue的方法 <!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8" /><link rel"icon" href"/favicon.ico" /><meta name"viewport" content"widthdevice-width,…

tensorflow中 tf.reduce_mean函数

tf.reduce_mean 函数用于计算张量tensor沿着指定的数轴&#xff08;tensor的某一维度&#xff09;上的的平均值&#xff0c;主要用作降维或者计算tensor&#xff08;图像&#xff09;的平均值。 reduce_mean(input_tensor, axisNone, keep_dim…

批量清空指定表数据

declarecursor c_t is (select table_name from user_tables where table_name like D%);--声明一个游标table_name user_tables.table_name%type;--声明一个表名的变量 begin open c_t;loop fetch c_t into table_name;exit when c_t%notfound;execute immediate truncate tab…

tensorflow的tf.train.Saver()

tensorflow相比于keras的保存要麻烦许多。 保存&#xff1a; with tf.Session() as sess:saver tf.train.Saver(max_to_keep20)saver.save(sess, os.path.join(train_output_dir, "model"), global_stepstep) 实际保存的是sess中的值&#xff0c;得到 读取&#…