上一页 1 2 3 4 5 6 7 ··· 28 下一页
摘要: 1、App.vue代码如下: <template> <Father/> </template> <script setup> import Father from './view/Father.vue' </script> <style> </style> 2、Father.vue代码如下: <te 阅读全文
posted @ 2024-08-11 02:01 像一棵海草海草海草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、App.vue代码如下: <template> <Father/> </template> <script setup> import Father from './view/Father.vue' </script> <style> </style> 2、Father.vue代码如下: <te 阅读全文
posted @ 2024-08-11 01:12 像一棵海草海草海草 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、main.js代码如下: // import './assets/main.css' import {createApp} from 'vue' import App from './App.vue' import Config from "@/config.js"; import Testpa 阅读全文
posted @ 2024-08-11 00:59 像一棵海草海草海草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、一个经典的样式布局 2、App.vue代码如下: <template> <Header/> <Main/> <Aside/> </template> <script> import Aside from "./view/Aside.vue"; import Main from "./view/M 阅读全文
posted @ 2024-08-11 00:04 像一棵海草海草海草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、全局代码App.vue如下 <script setup> import Testpage001 from './view/Testpage001.vue' import Testpage002 from './view/Testpage002.vue' </script> <template> 阅读全文
posted @ 2024-08-10 23:20 像一棵海草海草海草 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <div ref="container" class="container">{{ caption }}</div> <input type="text" ref="username"> <button @click="getElementHandle">获取元 阅读全文
posted @ 2024-08-10 22:51 像一棵海草海草海草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下 <template> <h3>表单输入绑定</h3> <form> <!-- 编辑框内容变化时候,下面标签同步显示编辑框内容--> <input type="text" v-model:="username"> <P>{{ username }}</P> <!-- 编辑框内容变化时候, 阅读全文
posted @ 2024-08-10 22:44 像一棵海草海草海草 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 01、代码如下: <template> <h3>侦听器</h3> <div>{{ msg }}</div> <button @click="undateHandle">修改</button> </template> <script> export default { data() { return 阅读全文
posted @ 2024-08-10 22:06 像一棵海草海草海草 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <div :style="{color:activeColor,fontSize:fontsize+'px'}">Style绑定1</div> <div :style="styleObject">Style绑定2</div> <div :style="[styl 阅读全文
posted @ 2024-08-10 21:58 像一棵海草海草海草 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、App.vue代码如下: <script setup> import Testpage001 from './view/Testpage001.vue' </script> <template> <Testpage001/> </template> <style> </style> 2、如图所示 阅读全文
posted @ 2024-08-10 21:48 像一棵海草海草海草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <h3>class绑定</h3> <div :class="{ 'active':isActive , 'text-danger':hasError }">Class样式绑定1</div> <div :class="classObject">Class样式绑定2 阅读全文
posted @ 2024-08-10 21:33 像一棵海草海草海草 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <h3>计算属性</h3> <div>{{ func1 }}</div> <div>{{ func1 }}</div> <div>{{ func1 }}</div> <!-- <div>{{ func1() }}</div>--> <!-- <div>{{ fu 阅读全文
posted @ 2024-08-10 18:29 像一棵海草海草海草 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <h3>数组变化侦听</h3> <button @click="addListHandle">添加数据</button> <ul> <li v-for="(item,index) of names" :key="index">{{ item }}</li> </ 阅读全文
posted @ 2024-08-10 18:10 像一棵海草海草海草 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <h3>事件修饰符</h3> <a @click.prevent="clickHandle" href="http://www.baidu.com">百度</a> <div @click="click1"><p @click="click2">测试1</p></ 阅读全文
posted @ 2024-08-10 17:48 像一棵海草海草海草 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下 <template> <h3>事件传参</h3> <p @click="getNameHandler(item,$event)" v-for="(item,index) of names" :key="index">{{ item }}</p> </template> <script> 阅读全文
posted @ 2024-08-10 17:34 像一棵海草海草海草 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <h3>内联事件处理群</h3> <button @click="addCount1">Add</button> <p>{{ count1 }}</p> <button @click="addCount2('hello')">按钮</button> <p>{{ 阅读全文
posted @ 2024-08-10 17:12 像一棵海草海草海草 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <h3>内联事件处理群</h3> <button @click="addCount">Add</button> <p>{{ count }}</p> </template> <script> export default { data() { return { 阅读全文
posted @ 2024-08-10 17:03 像一棵海草海草海草 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <h3>列表渲染</h3> <p v-for="(item,index) of names">序号:{{ index }},内容:{{ item }} </p> <div v-for="item of result"> <p>ID:{{ item.id }}, 阅读全文
posted @ 2024-08-10 16:29 像一棵海草海草海草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 01、代码如下: <template> <button @click="isCn = !isCn">转换</button> <h1 v-if="isCn">十年一梦学Vue!</h1> <h1 v-else>Ten years of dreaming of Vue!</h1> </template> 阅读全文
posted @ 2024-08-10 15:59 像一棵海草海草海草 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <div v-bind:id="myId1" v-bind:class="testCls" v-bind="objAttrs">测试1</div> </template> <script> export default { data() { return { t 阅读全文
posted @ 2024-08-10 15:01 像一棵海草海草海草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <div v-bind:id="myId1" v-bind:class="testCls">测试1</div> <div v-bind:id="myId2" v-bind:title="testTitle">测试2</div> <div :id="myId3" 阅读全文
posted @ 2024-08-10 14:55 像一棵海草海草海草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <div v-bind:id="myId" v-bind:class="testCls">测试</div> </template> <script> export default { data() { return { testCls: "appclass", 阅读全文
posted @ 2024-08-10 14:43 像一棵海草海草海草 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、代码如下: <template> <h3>模板语法</h3> <p>{{ msg }}</p> <p>{{ msg_cn }}</p> <p>{{ number + 1 }}</p> <p>{{ ok ? 'Yes' : 'No' }}</p> <p>{{ message.split("").r 阅读全文
posted @ 2024-08-10 14:33 像一棵海草海草海草 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、在App.vue中写入下面的代码 <template> <h3>模板语法</h3> <p>{{ msg }}</p> <p>{{ msg_cn }}</p> </template> <script> export default { data() { return { msg: "Hello W 阅读全文
posted @ 2024-08-10 14:31 像一棵海草海草海草 阅读(7) 评论(0) 推荐(0) 编辑
摘要: CI4和VUE前端代码,可以看我在https://www.cnblogs.com/tianpan2019写的前2篇 运行CI4能正常打开 使用npm run dev 也可以正常打开VUE 根据https://www.cnblogs.com/tianpan2019前1篇把根目录设置成CI4的publi 阅读全文
posted @ 2024-08-10 02:15 像一棵海草海草海草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 安装node22.5 选择路径 安装完成 装好后使用cmd查看node -v和 npm -v,看一下就知道有没有装好了 nodejs的安装目录,需要完全授权才可以,不然后面会报错 在网站的根目录,打开Powershell 显示权限不足的错误 管理员模式打开系统的Powershell 输入set-Ex 阅读全文
posted @ 2024-08-10 01:47 像一棵海草海草海草 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 安装git 选择路径 一路回车安装 安装phpstudy 安装好的界面 下载php8.2.9 点一下默认配置,确定 php版本要选择php8.2.9 需要安装的php扩展如下 点开网站的管理,设置一个根目录 php,启动 在根目录创建一个index.html的文件,用浏览器打开,看看能不能访问。没问 阅读全文
posted @ 2024-08-07 22:48 像一棵海草海草海草 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Chapter 10 解剖一幅图 Book_1《编程不难》 | 鸢尾花书:从加减乘除到机器学习 代码来源:https://matplotlib.org/stable/gallery/showcase/anatomy.html import matplotlib.pyplot as plt impor 阅读全文
posted @ 2024-07-17 14:10 像一棵海草海草海草 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Python中列表索引和切片 # 创建一个混合列表 my_list = [1, 1.0, '1ab', True, [1, 1.0, '1'], {1}, {1: 1.0}] print('列表长度为') print(len(my_list)) # 列表长度为 # 7 # 打印每个元素和对应的序号 阅读全文
posted @ 2024-07-16 17:09 像一棵海草海草海草 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Python中常用f-string用法 import datetime now = datetime.datetime.now() print(f'{now:%Y-%m-%d %H:%M}') print(f'{now:%d/%m/%y %H:%M:%S}') # 2023-10-02 06:11 阅读全文
posted @ 2024-07-16 17:09 像一棵海草海草海草 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Python中常用占位符类型 'The first letter of Python is %c' % 'P' # 'The first letter of Python is P' 'Welcome to the world of %s!' % 'Python' # 'Welcome to the 阅读全文
posted @ 2024-07-16 17:08 像一棵海草海草海草 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Python中将数据插入字符串 name = 'James' height = 181.18 # 使用 + 运算符 str_1 = name + ' has a height of ' + str(height) + ' cm.' print(str_1) # James has a height 阅读全文
posted @ 2024-07-16 17:08 像一棵海草海草海草 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Python中字符串索引和切片 greeting_str = 'Hey, James!' # 打印字符串长度 print('字符串的长度为:') print(len(greeting_str)) # 字符串的长度为: # 11 # 打印每个字符和对应的索引 for index, char in en 阅读全文
posted @ 2024-07-16 13:22 像一棵海草海草海草 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Python中字符串的定义和操作 str1 = 'I am learning Python 101!' print(str1) # I am learning Python 101! str2 = "Python is fun. Machine learning is fun too." print 阅读全文
posted @ 2024-07-16 13:10 像一棵海草海草海草 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Python中的三类数组 x = 88 # 整数 y = -8.88 # 浮点数 z = 8 + 8j # 复数 print(type(x)) print(type(y)) print(type(z)) 阅读全文
posted @ 2024-07-16 12:48 像一棵海草海草海草 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-01-04 16:19 像一棵海草海草海草 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2022-12-29 16:19 像一棵海草海草海草 阅读(0) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="GB2312"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> <label_out> <!-- 三条数据 --> <label_people> <name>张三</name> < 阅读全文
posted @ 2022-12-06 10:14 像一棵海草海草海草 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1.show.xml代码如下: <?xml version="1.0" encoding="GB2312"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> <label_out> <!-- 三条数据 --> <label_people> < 阅读全文
posted @ 2022-12-06 10:09 像一棵海草海草海草 阅读(110) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2022-11-24 09:26 像一棵海草海草海草 阅读(0) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 28 下一页