摘要: <html lang="en"> <body> <div class="container"> <div class="main "> 中间 </div> <div class="left"> 左边 </div> <div class="right"> 右边 </div> </div> </body 阅读全文
posted @ 2023-05-18 17:24 TM_cc 阅读(18) 评论(0) 推荐(0)
摘要: 1.jsonp实现跨域 1 <script> 2 var script = document.createElement('script'); 3 script.type = 'text/javascript'; 4 5 // 传参并指定回调执行函数为(&callback=onBack) 6 scr 阅读全文
posted @ 2022-12-14 10:35 TM_cc 阅读(40) 评论(0) 推荐(0)
摘要: 1 import axios from 'axios' 2 3 // 定义常见的错误 4 const TOKEN_ERROR = 'token认证失败,请重新登录' 5 const NETWORK_ERROR = '网络异常,请检查网络后重试' 6 7 // 创建axios实例 8 // let b 阅读全文
posted @ 2022-07-19 20:54 TM_cc 阅读(41) 评论(0) 推荐(0)
摘要: import { Indicator } from "mint-ui"; import axios from "axios"; import store from '@/store/index' import router from "@/router/index"; export default 阅读全文
posted @ 2022-07-18 17:03 TM_cc 阅读(36) 评论(0) 推荐(0)
摘要: const student = { name:'小明', age:12, [Symbol('leavel')]:'优秀', [Symbol('leavel')]:'优秀' } // 查看name属性对应的属性描述符 Object.getOwnPropertyDescriptor(student,'n 阅读全文
posted @ 2022-07-10 17:47 TM_cc 阅读(34) 评论(0) 推荐(0)
摘要: let a = 1 let b = a b = 3 console.log(b) // 3 这是赋值(非要说就是深拷贝) let arr = [1, 2, 3] let newArr = arr newArr.push(4) console.log(newArr) // 1,2,3,4 consol 阅读全文
posted @ 2022-04-28 20:55 TM_cc 阅读(28) 评论(0) 推荐(0)
摘要: js执行顺序 1.同步 2.nextTick 3.异步 4.setImmediate(当前事件循环结束后执行) <script> setImmediate(()=>{ console.log(1) }) process.nextTick(()=>{ console.log(2) }) console 阅读全文
posted @ 2022-04-22 15:35 TM_cc 阅读(113) 评论(0) 推荐(0)
摘要: String,Array、Math、Date 阅读全文
posted @ 2021-11-15 16:21 TM_cc 阅读(45) 评论(0) 推荐(0)
摘要: 弹性布局 阅读全文
posted @ 2021-11-14 20:17 TM_cc 阅读(86) 评论(0) 推荐(0)
摘要: CSS3中动画、框模型、文本阴影、背景属性 阅读全文
posted @ 2021-11-14 18:19 TM_cc 阅读(40) 评论(0) 推荐(0)