导航和明细页面的新建,以及路由:自己的代码以及标准代码的对比

news/2024/7/10 2:04:51 标签: vue

Home.vue

<template>
    明细
</template>


<script>
export default {
    
}
</script>

Login.vue

<template>
    注册
</template>


<script>
export default {
    
}
</script>

User.vue

<template>
    我的
</template>


<script>
export default {
    
}
</script>

Nau.vue导航的

<template>
    <button>明细</button>
    <button>注册</button>
    <button>我的</button>
</template>


router/index.js

import {  } from "vue";
import { } from daohang
import index.js from CSS;

<script>
export default {
    prog: {

    }
    data: {
        path: '/'
        name: Home 

    }
}
</script>

App.vue

<template>
我是陈尼克
</template>

<script setup>
import HelloWorld from './components/HelloWorld.vue'

// This starter template is using Vue 3 experimental <script setup> SFCs
// Check out https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md
</script>


index.js

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

main.js

import { createApp } from 'vue'
import App from './App.vue'

createApp(App).mount('#app')


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

相关文章

神经网络优化-滑动平均

1、概述 在采用随机梯度下降&#xff08;SGD&#xff09;算法训练神经网络时&#xff0c;使用滑动平均模型可以一定程度增强参数的稳定性&#xff0c;提高最终模型在测试数据上的表现&#xff0c;使模型在测试数据上更健壮。 在实际的神经网络计算中&#xff0c;实际使用的是…

加载MNIST报错:[WinError 10060] 由于连接方在一段时间后没有正确答复解决办法

转载&#xff1a;https://blog.csdn.net/landcruiser007/article/details/79346982 tensorflow加载mnist数据集&#xff0c;一些书上和博客中的代码如下&#xff1a; from tensorflow.examples.tutorials.mnist import input_data mnistinput_data.read_data_sets("MNIS…

说到用npm调试vue,我以为是新建命令后,再npm run dev或serve就可以,却发现不可以

新建了一个qq.html代码&#xff0c;发现不行 <!DOCTYPLE html> <html><head><title>222222</title></head><body><div id "counter">Counter: {{ counter }}</div><script>import vue from "vue&…

《TensorFlow 实战Google深度学习框架》中MNIST数字识别问题程序的实现与思考

书上的程序&#xff1a; import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data__author__: str zhangkun INPUT_NODE 784 # 输入节点数 OUTPUT_NODE 10 # 输出节点数LAYER1_NODE 500 # 隐层节点数 BATCH_SIZE 100 # BATCH大小LEARNI…

新运行了一个todolist的vue文件,从官网衍生出的

https://codesandbox.io/s/vue-todo-list-app-with-single-file-component-vzkl3?file/src/App.vue:0-1551 下载代码 npm install npm run dev 即可 两个代码 app.vue <template><div class"wrapper"><h1>My Todo List</h1><form subm…

python报“IndentationError: unexpected indent“的解决方法.

python是一种对缩进非常敏感的语言&#xff0c;最常见的情况是tab和空格的混用会导致错误&#xff0c;或者缩进不对&#xff0c;而这是用肉眼无法分别的。 将def 前面的空格去掉&#xff0c;然后对print做下tab空格,问题就解决了&#xff0c;如下图: Python语言是一款对缩进非…

tensorflow框架学习(一)placeholder 与variable

1. placeholder —占位符 参考 http://www.tensorfly.cn/tfdoc/api_docs/python/io_ops.html placeholder, 译为占位符&#xff0c;官方说法:”TensorFlow provides a placeholder operation that must be fed with data on execution.” 即必须在执行时feed值。 placeholde…

单页面html的代码和vite npm的代码试一试成不成功

43html 成功 <!DOCTYPLE html> <html><head><title>222222</title></head><body><script src"https://unpkg.com/vuenext"></script><div id"bind-attribute"><span v-bind:title"m…