博客园 - niunf
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=36171
2018-09-10T02:30:15Z
niunf
https://www.cnblogs.com/nnf-888/
feed.cnblogs.com
https://www.cnblogs.com/nnf-888/p/9590618.html
s对频繁触发事件的 函数防抖 和 函数节流 - niunf
1.场景
2018-09-05T02:29:00Z
2018-09-05T02:29:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】1.场景 <a href="https://www.cnblogs.com/nnf-888/p/9590618.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9561095.html
缓存同步与异步的区别 - niunf
异步缓存 :不会阻塞当前任务 同步缓存:直到同步方法处理完才能继续往下执行
2018-08-30T08:41:00Z
2018-08-30T08:41:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】异步缓存 :不会阻塞当前任务 同步缓存:直到同步方法处理完才能继续往下执行 <a href="https://www.cnblogs.com/nnf-888/p/9561095.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9474299.html
mousedown-mouseup-click事件执行顺序 - niunf
<input type="button" id="btn" value="点我"><script> var btn = document.getElementById("btn");btn.addEventListener("mousedown",function(){ console.log("m
2018-08-14T06:04:00Z
2018-08-14T06:04:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】<input type="button" id="btn" value="点我"><script> var btn = document.getElementById("btn");btn.addEventListener("mousedown",function(){ console.log("m <a href="https://www.cnblogs.com/nnf-888/p/9474299.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9327569.html
My97DatePicker - niunf
1. My97DatePicker与angular一起使用时改变了但是angular无法监测到变化解决方式
2018-07-18T02:05:00Z
2018-07-18T02:05:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】1. My97DatePicker与angular一起使用时改变了但是angular无法监测到变化解决方式 <a href="https://www.cnblogs.com/nnf-888/p/9327569.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9300526.html
webStorm - Git 使用 - niunf
1. 双击shift 查找某个文件(css, html , js); 2. 双击shift 输入某个 指令 / 过滤器 名字,查找其所在文件; 3. 查看 某个变量在哪使用了 选中变量,Alt+f7 或者 右键,find usage; 4. 新增图片 用编辑器 提交 5. 查看本地历史 选中文件,右
2018-07-12T09:13:00Z
2018-07-12T09:13:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】1. 双击shift 查找某个文件(css, html , js); 2. 双击shift 输入某个 指令 / 过滤器 名字,查找其所在文件; 3. 查看 某个变量在哪使用了 选中变量,Alt+f7 或者 右键,find usage; 4. 新增图片 用编辑器 提交 5. 查看本地历史 选中文件,右 <a href="https://www.cnblogs.com/nnf-888/p/9300526.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9267417.html
符号 - niunf
html符号<!--空格--> <div>&nbsp;</div> 或者<div>&nbsp</div><!--&--> <div>&amp</div><!--&--> <div>&amp;</div><!--<--> <div>&lt;</div><!-- > --> <div>&gt;</div
2018-07-05T03:27:00Z
2018-07-05T03:27:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】html符号<!--空格--> <div>&nbsp;</div> 或者<div>&nbsp</div><!--&--> <div>&amp</div><!--&--> <div>&amp;</div><!--<--> <div>&lt;</div><!-- > --> <div>&gt;</div <a href="https://www.cnblogs.com/nnf-888/p/9267417.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9235696.html
修改placeholder颜色,去除谷歌浏览器默认提示框 - niunf
1.修改placeholder颜色<style> input::-webkit-input-placeholder{ color:red; } input::-moz-placeholder{ /* Mozilla Firefox 19+ */ color:red; } input:-moz-pla
2018-06-27T11:35:00Z
2018-06-27T11:35:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】1.修改placeholder颜色<style> input::-webkit-input-placeholder{ color:red; } input::-moz-placeholder{ /* Mozilla Firefox 19+ */ color:red; } input:-moz-pla <a href="https://www.cnblogs.com/nnf-888/p/9235696.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9179219.html
图片路径 - niunf
1. /api 跟目录(到端口的) eg: http://localhost/dll.html#/MM/pic 到 http://localhost:80/ 2. api 当前目录 3. ./api 当前目录(),到二级域名的 eg: http://60.247.77.147/robotv5/dll
2018-06-13T10:15:00Z
2018-06-13T10:15:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】1. /api 跟目录(到端口的) eg: http://localhost/dll.html#/MM/pic 到 http://localhost:80/ 2. api 当前目录 3. ./api 当前目录(),到二级域名的 eg: http://60.247.77.147/robotv5/dll <a href="https://www.cnblogs.com/nnf-888/p/9179219.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9056010.html
$scope.$watch监听 - niunf
//angularJS $scope的 $watch 方法监听model改变 //$scope有个 $watch 方法,可以监听指定的model的改变,一旦model改变则触发(执行)传入其中的方法,该方法接收三个参数: //$scope.$watch('要监听的model名',function(n
2018-05-18T06:20:00Z
2018-05-18T06:20:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】//angularJS $scope的 $watch 方法监听model改变 //$scope有个 $watch 方法,可以监听指定的model的改变,一旦model改变则触发(执行)传入其中的方法,该方法接收三个参数: //$scope.$watch('要监听的model名',function(n <a href="https://www.cnblogs.com/nnf-888/p/9056010.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9054909.html
git 修改地址,及提交返回403错误原因 - niunf
修改地址: 找到该项目根目录下, .git > config 文件 > 编辑器打开,,,,修改 url = https://username@github.com/username/project.git ; 提交返回403 没有权限;
2018-05-18T02:24:00Z
2018-05-18T02:24:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】修改地址: 找到该项目根目录下, .git > config 文件 > 编辑器打开,,,,修改 url = https://username@github.com/username/project.git ; 提交返回403 没有权限; <a href="https://www.cnblogs.com/nnf-888/p/9054909.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9023288.html
History 对象 - niunf
History 对象History 对象包含用户(在浏览器窗口中)访问过的URL;History 对象是window 对象的一部分,可用过window.history属性对其进行访问;没有应用于History对象的公开标准,不是所有浏览器都支持该对象History 对象属性length //返回历史
2018-05-11T02:25:00Z
2018-05-11T02:25:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】History 对象History 对象包含用户(在浏览器窗口中)访问过的URL;History 对象是window 对象的一部分,可用过window.history属性对其进行访问;没有应用于History对象的公开标准,不是所有浏览器都支持该对象History 对象属性length //返回历史 <a href="https://www.cnblogs.com/nnf-888/p/9023288.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9020510.html
javascript Array filter()方法 - niunf
定义和用法 filter()方法创建一个新的数组,新数组中的元素是通过检查指定数组中符合条件的所有元素.filter()不会对空数组进行检测filter()不会改变原始数组语法array.filter(function(currentValue,index,arr),thisValue);funct
2018-05-10T08:55:00Z
2018-05-10T08:55:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】定义和用法 filter()方法创建一个新的数组,新数组中的元素是通过检查指定数组中符合条件的所有元素.filter()不会对空数组进行检测filter()不会改变原始数组语法array.filter(function(currentValue,index,arr),thisValue);funct <a href="https://www.cnblogs.com/nnf-888/p/9020510.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9018719.html
ja map()函数 - niunf
javascript Array map()方法map()方法返回一个新数组,数组中的元素为原始数组元素调用函数处理后的值。map()方法按照原始数组元素顺序依次处理元素map()不会对空数组进行检测map()不会改变原始数组//语法array.map(function(currentValue,i
2018-05-10T03:22:00Z
2018-05-10T03:22:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】javascript Array map()方法map()方法返回一个新数组,数组中的元素为原始数组元素调用函数处理后的值。map()方法按照原始数组元素顺序依次处理元素map()不会对空数组进行检测map()不会改变原始数组//语法array.map(function(currentValue,i <a href="https://www.cnblogs.com/nnf-888/p/9018719.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/9015892.html
箭头函数=> - niunf
ES6标准新增了一种新的函数:Arrow Function(箭头函数)。 为什么叫Arrow Function?因为它的定义用的就是一个箭头: 上面的箭头函数相当于: eg: 箭头函数相当于匿名函数,并且简化了函数定义。箭头函数有两种格式,一种像上面的,只包含一个表达式,连{ ... }和retur
2018-05-09T10:13:00Z
2018-05-09T10:13:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】ES6标准新增了一种新的函数:Arrow Function(箭头函数)。 为什么叫Arrow Function?因为它的定义用的就是一个箭头: 上面的箭头函数相当于: eg: 箭头函数相当于匿名函数,并且简化了函数定义。箭头函数有两种格式,一种像上面的,只包含一个表达式,连{ ... }和retur <a href="https://www.cnblogs.com/nnf-888/p/9015892.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/8986169.html
网址校验 - niunf
在: var reg=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/;之中, 1、Javascript之中,由于所有变量都是var,因此正则表达式必须写在两个斜杠之中
2018-05-03T08:41:00Z
2018-05-03T08:41:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】在: var reg=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/;之中, 1、Javascript之中,由于所有变量都是var,因此正则表达式必须写在两个斜杠之中 <a href="https://www.cnblogs.com/nnf-888/p/8986169.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/8980768.html
form 表单 - niunf
1. novalidate 用来阻止提交表单前的验证
2018-05-02T08:01:00Z
2018-05-02T08:01:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】1. novalidate 用来阻止提交表单前的验证 <a href="https://www.cnblogs.com/nnf-888/p/8980768.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/8961220.html
nginx使用,启动,停止,重启 - niunf
一,基本命令 运行nginx start nginx 停止nginx nginx -s stop 快速关闭nginx ,可能不保存相关信息,并迅速终止web服务。 nginx -s quit 平稳关闭nginx, 保存相关信息,有安排的结束web服务 重启nginx nginx -s reload
2018-04-27T02:39:00Z
2018-04-27T02:39:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】一,基本命令 运行nginx start nginx 停止nginx nginx -s stop 快速关闭nginx ,可能不保存相关信息,并迅速终止web服务。 nginx -s quit 平稳关闭nginx, 保存相关信息,有安排的结束web服务 重启nginx nginx -s reload <a href="https://www.cnblogs.com/nnf-888/p/8961220.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/8890805.html
git 加入忽略列表,版本回退 使用 总结,gitLab版本回退, - niunf
一, 加入到忽略列表 项目文件 选中要忽略文件右键--TortoiseGit-Delete and Add to ignore list 二, git 远程 版本回退 查看版本号 编辑器 log 里面选中要回退的版本 右键--Copy Revision Number,得到版本号 2f5e0ca078
2018-04-20T06:36:00Z
2018-04-20T06:36:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】一, 加入到忽略列表 项目文件 选中要忽略文件右键--TortoiseGit-Delete and Add to ignore list 二, git 远程 版本回退 查看版本号 编辑器 log 里面选中要回退的版本 右键--Copy Revision Number,得到版本号 2f5e0ca078 <a href="https://www.cnblogs.com/nnf-888/p/8890805.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/8883245.html
去掉谷歌浏览器输入框的默认黄色背景 - niunf
谷歌浏览器登录记住密码后 下次登录会自动填充,并且有黄色背景。 谷歌浏览器的设置如下: input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { input:-webkit-autofill, texta
2018-04-19T07:26:00Z
2018-04-19T07:26:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】谷歌浏览器登录记住密码后 下次登录会自动填充,并且有黄色背景。 谷歌浏览器的设置如下: input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { input:-webkit-autofill, texta <a href="https://www.cnblogs.com/nnf-888/p/8883245.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/nnf-888/p/8745226.html
npm -yarn -gulp 使用简介 - niunf
NPM使用介绍NPM是随同NodeJs 一起安装的包管理工具,能解决NodeJS代码部署上的很多问题,常见的使用场景有: 允许用户从NPM服务器下载别人编写的第三方包到本地使用。 允许用户从NPM服务器下载并安装别人编写的命令程序到本地使用 允许用户将自己编写的包或命令程序上传到NPM服务器供别人使用。新版的nodejs 已经集成了npm,npm一并安装好了,可输入 npm -v...
2018-04-08T07:27:00Z
2018-04-08T07:27:00Z
niunf
https://www.cnblogs.com/nnf-888/
【摘要】NPM使用介绍NPM是随同NodeJs 一起安装的包管理工具,能解决NodeJS代码部署上的很多问题,常见的使用场景有: 允许用户从NPM服务器下载别人编写的第三方包到本地使用。 允许用户从NPM服务器下载并安装别人编写的命令程序到本地使用 允许用户将自己编写的包或命令程序上传到NPM服务器供别人使用。新版的nodejs 已经集成了npm,npm一并安装好了,可输入 npm -v... <a href="https://www.cnblogs.com/nnf-888/p/8745226.html" target="_blank">阅读全文</a>