摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> .w{ display: flex; flex-direction: row; justify-content: center; width: 6 阅读全文
摘要:
小而美被实践是最好用的,这里收藏了一些很好用的js库,他们都功能单一且非常小。 COOKIE.JS https://github.com/js-coder/cookie.js 如果你操作过cookie的接口,那么你一定会感觉这东西的规范真的是太复杂了,根本记不住啊,其实你是对的,因为cookie的接 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.js"></scr 阅读全文
摘要:
const j = {name:'佩奇',age:5} const keys = Object.keys(j) const values = Object.values(j) console.log(keys) console.log(values) 阅读全文
摘要:
//数组 - - //结构赋值 // const arr = [[2,6,8],4,9] // let [a,b,c] = arr // console.log(a) //2 // console.log(b) //4 // console.log(c) //9 //交换变量 // let a = 阅读全文
摘要:
//剩余参数 function sum(...arr){ console.log(arr) } sum(3,4,5,6) // 求数组最大值 let arr = [1,44,7,88] console.log(Math.max(...arr)) //合并数组 let arr2 = [2,5,77] 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>购物车复选框的选中 反选的案例</title> </head> <body> All <input class="all" name="Checkbox" type="checkb 阅读全文
摘要:
<script setup> import { ref,computed,watch } from 'vue' const num = ref(1) const name = ref('ming') const obj = ref({name:'小明',age:30}) //watch 简单类型 / 阅读全文
摘要:
<script setup> import { ref,computed } from 'vue' const msg = ref(1) const clickMsg = () =>{ msg.value++; console.log('+++')} const clickMsgjj = () => 阅读全文
摘要:
<script setup> import { ref } from 'vue' const msg = ref(1) const clickMsg = () =>{ msg.value++; console.log('+++')} const clickMsgjj = () =>{ msg.val 阅读全文