上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: 1.axios基本使用 1.1 在main.js中全局配置: import Vue from 'vue' import axios from 'axios' Vue.prototype.$http=axios axios.defaults.baseURL = '/api' //默认的根路径 1.2 阅读全文
posted @ 2021-05-27 11:25 封兴旺 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 1.构建项目: vue ui 新建新项目(命令:vue create xxx): 填写文件夹名字直接下一步; 选择手动然后下一步; 选择bable、router、使用配置文件然后下一步; use history mode for router? (是否使用历史模式路由,默认不使用,所以直接下一步); 阅读全文
posted @ 2021-05-26 17:50 封兴旺 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 前言介绍:刚开始装虚拟机的时候,由于当时什么也不懂,就跟着教程装的,当时磁盘空间配置的只有20G,最近由于用ubuntu比较多,磁盘空间逐渐力不从心,所以从网上学了点经验,记录下来与大家共享。注意:以下图片有中英混杂的地方(图片来自两个客户机,一台汉化了另一台没有),如果出现不同于自己的客户机的文字 阅读全文
posted @ 2021-05-20 09:15 封兴旺 阅读(2380) 评论(0) 推荐(0) 编辑
摘要: 使用 parentNode、nextSibling、previousSibling、firstChild 和 lastChild 属性可以遍历文档树中任意类型节点,包括空字符(文本节点)。HTML 5 新添加 5 个属性专门访问元素节点。 childElementCount:返回子元素的个数,不包括 阅读全文
posted @ 2021-05-19 12:06 封兴旺 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 字符串函数 字符串转数组: split() // 注:将字符串转换为数组,括号里面是要删除并以 ,代替的内容。 计算字符串(eval()): eval("x=10;y=20;document.write(x*y)") document.write(eval("2+2")) var x=10; doc 阅读全文
posted @ 2021-05-19 11:28 封兴旺 阅读(49) 评论(0) 推荐(0) 编辑
摘要: find 4.2.9/1-install-1-/lib -name *.so* -exec du -sh {} + update-alternatives(更新备选方案) 配置替代版本: sudo update-alternatives --install /usr/bin/python pytho 阅读全文
posted @ 2021-05-17 09:39 封兴旺 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 按指定长度分割字符串 function my_split(str,leng){ let arr = []; let index = 0; while(index<str.length) arr.push(str.slice(index,index +=leng)); console.log(arr) 阅读全文
posted @ 2021-05-15 15:33 封兴旺 阅读(64) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="" content=""> <script src="../资源/jquery.min.js"></script> <title></title> <style> </s 阅读全文
posted @ 2021-04-22 13:57 封兴旺 阅读(1385) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .div { display: none; position: absolute; width: 30px; he 阅读全文
posted @ 2021-04-22 13:55 封兴旺 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 第一种情况(监听鼠标滚轮的停止):<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="" content=""> <title></title> <style> </style> </head> <body> <p>ok< 阅读全文
posted @ 2021-04-22 13:52 封兴旺 阅读(2387) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页

联系方式: 18274305123(微信同号)