随笔分类 -  Javascript

摘要:代码如下: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>HTML5 Local Storage Example</title> <!-- include Bootstrap CSS for layou 阅读全文
posted @ 2021-10-24 11:22 dshow 阅读(32) 评论(0) 推荐(0) 编辑
摘要:AddDemo: <template> <div> <input type="number" name="Num1" id="Num1" v-model="Num1" >+<input type="number" name="Num2" id="Num2" v-model="Num2" >=<lab 阅读全文
posted @ 2021-09-26 18:18 dshow 阅读(91) 评论(0) 推荐(0) 编辑
摘要:<template> <div> {{dataname}} {{setupname}} <p>Num:{{num}}</p> <p>Age:{{age}}</p> <button @click="plusOne1()">+</button> <button @click="plusOne2()">+ 阅读全文
posted @ 2021-09-25 12:55 dshow 阅读(102) 评论(0) 推荐(0) 编辑
摘要:Child.vue: <template> <div>Child Info:{{message}}</div> </template> <script> import {inject,ref,onMounted} from 'vue' export default { name:'Child', s 阅读全文
posted @ 2021-09-24 23:38 dshow 阅读(121) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="flex-demo"> <div class="inner1" v-on:click="fn" >11</div> <div class="inner2">22</div> <div class="inner1" v-if="showCmd.bValue 阅读全文
posted @ 2021-09-24 18:24 dshow 阅读(82) 评论(0) 推荐(0) 编辑
摘要:代码1: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" co 阅读全文
posted @ 2021-08-15 13:22 dshow 阅读(212) 评论(0) 推荐(0) 编辑