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

news/2024/7/10 0:09:08 标签: vue

43html 成功

<!DOCTYPLE html>
<html>
    <head>
        <title>
            222222
        </title>
    </head>
   
    <body>
        <script src="https://unpkg.com/vue@next"></script>
        <div id="bind-attribute">
            <span v-bind:title="message">
              鼠标悬停几秒钟查看此处动态绑定的提示信息!
            </span>
          </div>
        <script>
            const AttributeBinding = {
            data() {
                return {
                message: 'You loaded this page on ' + new Date().toLocaleString()
                }
            }
            }

            Vue.createApp(AttributeBinding).mount('#bind-attribute')
           
        </script>

    </body>
</html>


vite的待试

好像不用vite
直接html和js就行
前面试过


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

相关文章

《TensorFlow 实战Google深度学习框架》中MNIST数字识别问题程序的重构

前馈神经网络计算部分 #mnist_inference.py import tensorflow as tfINPUT_NODE 784 # 输入节点数 OUTPUT_NODE 10 # 输出节点数 LAYER1_NODE 500 # 隐层节点数def get_weight_variable(shape, regularizer):weights tf.get_variable("weights", shape,initi…

windows 服务自动启动脚本 监控windows服务,并且自动启动

echo off rem 定义循环间隔时间和监测的服务&#xff1a; set secs3600 set srvname"myService" echo. echo echo 查询计算机服务的状态&#xff0c; echo 每间隔%secs%秒种进行一次查询&#xff0c; echo 如发现其停止&#x…

mounted和methods用法示例

<!DOCTYPE html> <html> <head> <meta charset"utf-8"> <title>Vue的方法_侠课岛(9xkd.com)</title> <script src"https://cdn.jsdelivr.net/npm/vue2.5.16/dist/vue.js"></script> </head> <bo…

tensorflow 中 variable_scope 与name_scope函数解析

前言 还是那句老话&#xff0c;学习tensorflow最好的方法就是阅读他的官方API手册。 知乎上面一个有意思的问答&#xff1a;tensorflow里面name_scope, variable_scope等如何理解&#xff1f; 先引用知乎上答主的话&#xff1a; 主要是因为 变量共享 的需求。而这就不得不谈…

SpringMVC异步处理(Callable和DeferredResult)

官方文档中说DeferredResult和Callable都是为了异步生成返回值提供基本的支持。简单来说就是一个请求进来&#xff0c;如果你使用了DeferredResult或者Callable&#xff0c;在没有得到返回数据之前&#xff0c;DispatcherServlet和所有Filter就会退出Servlet容器线程&#xff0…

TensorFlow中get_variable共享变量调用

import tensorflow as tfwith tf.variable_scope(v_scope,reuseTrue) as scope1:Weights1 tf.get_variable(Weights, shape[2,3])bias1 tf.get_variable(bias, shape[3])# 下面来共享上面已经定义好的变量 # note: 在下面的 scope 中的变量必须已经定义过了&#xff0c;才能设…

使用多线程往LIST添加数据 线程安全list

我们在日常写代码的过程中&#xff0c;经常会使用多线程提高效率&#xff0c;我们在使用多线程过程中难免会出现往List集合修改数据。 下面我们来尝试一下往ArrayList 添加数据&#xff1a; public static void main(String[] args) {List<Integer> list new ArrayList…

window10下安装tensorflow1.11+cuda9+cuDnn7+anaconda3-5.3

安装Anaconda和Tensorflow 一开始使用pycharm自带的第三方库安装方法安装TensorFlow1.12&#xff0c;但是无论如何都提示缺少动态链接库&#xff0c;重装了多遍vc2015都没有用&#xff0c;实在找不到解决方法的时候&#xff0c;遇到了救星Anaconda 以下安装参考&#xff1a; …