摘要: 命令: $ git config --local user.name ‘your_name’ $ git config --local user.email ‘your_email@domain.com’ --local则表示针对当前仓库有效,不会影响其他代码仓库 config有几个常用参数, 缺省 阅读全文
posted @ 2022-06-09 10:23 小玫瑰 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 引用aParse插件 aParse下载地址 https://gitee.com/royalpioneer/aParse 使用方法: 1.下载之后,将component文件夹拷贝出来放到自己的项目里 2.在你要使用的axml文件里引入 3.在相应的acss文件里引入 @import "../../co 阅读全文
posted @ 2020-09-03 10:22 小玫瑰 阅读(1166) 评论(0) 推荐(1) 编辑
摘要: 一.遇到代码冲突,出现merging时 1.git pull 出现冲突后可以暂存本地修改git stash git pull 更新代码 git stash list 可查看暂存记录列表 释放本地暂存 git stash apply stash@{0} 出现冲突文件,找到并解决,然后可以提交git a 阅读全文
posted @ 2020-08-29 09:53 小玫瑰 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 一个萌新小白,从头开始! 搭建环境: 1.先安装vue-cli脚手架 2.vue init simulatedgreg/electron-vue 3.安装依赖 npm install 4.运行项目 npm run dev https://www.jianshu.com/p/d548b92c0cb4 阅读全文
posted @ 2019-07-26 17:10 小玫瑰 阅读(268) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-06-13 16:51 小玫瑰 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 转载自别人,写在自己博客以便以后查阅 JavaScript中创建数组有两种方式(一)使用 Array 构造函数: var arr1 = new Array(); //创建一个空数组 var arr2 = new Array(20); // 创建一个包含20项的数组 var arr3 = new Ar 阅读全文
posted @ 2019-04-25 18:02 小玫瑰 阅读(281) 评论(0) 推荐(0) 编辑
摘要: AJAX请求是异步执行的,也就是说,要通过回调函数获得响应。 在现代浏览器上写AJAX主要依靠XMLHttpRequest对象: function success(text) { var textarea = document.getElementById('test-response-text') 阅读全文
posted @ 2018-11-27 11:39 小玫瑰 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1.https://alibaba.github.io/weex-ui/#/cn/ weex-ui框架 2.https://bmfe.github.io/eros-docs/#/?id eros 3.Vue调试神器vue-devtools安装 https://segmentfault.com/a/1 阅读全文
posted @ 2018-09-11 14:58 小玫瑰 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 一、校验数字的表达式 数字:^[0-9]*$ n位的数字:^\d{n}$ 至少n位的数字:^\d{n,}$ m-n位的数字:^\d{m,n}$ 零和非零开头的数字:^(0|[1-9][0-9]*)$ 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(\.[0-9]{1,2})?$ 带1 阅读全文
posted @ 2018-08-28 15:05 小玫瑰 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 一.当点击下一个元素的时候,上个元素的样式如何清除 1.把当前的所有元素样式都清空,然后点击某个元素,样式显示(利用for循环) 比如: aLi[i].onclick = function(){ for(var j=0; j<aDiv.length; j++){ aLi[j].className = 阅读全文
posted @ 2018-03-22 15:40 小玫瑰 阅读(201) 评论(0) 推荐(0) 编辑