上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页
  2021年8月15日
摘要: ul>li*4{$} 效果 <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> 阅读全文
posted @ 2021-08-15 19:11 文种玉 阅读(148) 评论(0) 推荐(0) 编辑
摘要: console.log(a); var a = 0; console.log(a); a = 0; console.log(a); var a = 0; console.log(a); console.log(a); var a = '我是变量'; function a(){ console.log 阅读全文
posted @ 2021-08-15 00:36 文种玉 阅读(218) 评论(0) 推荐(0) 编辑
  2021年8月5日
摘要: 抛出问题: 在javascript这门语言当中,从设计到发布,总共花了不到10天的时候,由于JavaScript这门语言开发的周期时间特别短,所以留下了不少的bug,其中就包括typeof检测null为Object,其实null并不是Object的类型,那为什么会出现typeof检测出null为Ob 阅读全文
posted @ 2021-08-05 16:50 文种玉 阅读(525) 评论(0) 推荐(0) 编辑
  2021年7月30日
摘要: JS数组中高阶遍历方法 filter()# filter方法检查数组,删除不匹配的元素,返回一个新数组 filter方法内部传入回调函数,回调函数要求必须传入数组的value const arr = [1,2,3,4]; let newArr = arr.filter(function(n){ re 阅读全文
posted @ 2021-07-30 08:30 文种玉 阅读(312) 评论(0) 推荐(0) 编辑
  2021年7月23日
摘要: import from 'vuex'; computed:{ //直接读取state中的数据 ...mapState({ goodsList:state => state.home.goodsList }), //通过getters来读取数据 ...mapGetters(["goodsList"]) 阅读全文
posted @ 2021-07-23 20:43 文种玉 阅读(939) 评论(0) 推荐(0) 编辑
摘要: get请求 import {reqCategoryList} from '@/api' const state = { categoryList:[] } const mutations = { RECEIVE_CATEGORYLIST(state,categoryList){ state.cate 阅读全文
posted @ 2021-07-23 19:38 文种玉 阅读(59) 评论(0) 推荐(0) 编辑
  2021年7月21日
摘要: 定义JSON字符串,命名为 banner.json [ { "id":"1", "imgUrl":"/images/banner1.jpg" }, { "id":"2", "imgUrl":"/images/banner2.jpg" }, { "id":"3", "imgUrl":"/images/ 阅读全文
posted @ 2021-07-21 18:17 文种玉 阅读(127) 评论(0) 推荐(1) 编辑
摘要: Vue3.1版本出现中此异常,在路由器中添加如下代码 //先把原来的push方法保存起来 const originPush = VueRouter.prototype.push const originReplace = VueRouter.prototype.replace //把原来的push修 阅读全文
posted @ 2021-07-21 08:38 文种玉 阅读(40) 评论(0) 推荐(0) 编辑
  2021年7月19日
摘要: 找到设置 -"editor.minimap.enabled": false; 如下图所示 阅读全文
posted @ 2021-07-19 11:50 文种玉 阅读(194) 评论(0) 推荐(0) 编辑
  2021年7月14日
摘要: 一个汉字占两个空格,所以使用4个空格就能够达到缩进两个汉字的效果,有以下几种方法: 一个空格大小的表示:&ensp; 或者 &#8194; ,只要在相应需要缩进的位置加上4个该标记即可,注意要带上分号 两个空格大小的表示:&emsp; 或者 &#8195; ,同理,使用两个该标记即可缩进两个汉字 不 阅读全文
posted @ 2021-07-14 23:24 文种玉 阅读(204) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页