博客园 - 百里登风
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=81196
2023-02-13T06:47:03Z
百里登风
https://www.cnblogs.com/bldf/
feed.cnblogs.com
https://www.cnblogs.com/bldf/p/17106949.html
javascript 提取字符串方法 slice substr substring - 百里登风
本文将对javascript提取字符串的三个方法slice/substr/substring ,进行分析。 这三个方法都具有提取字符串的功能,且都有两个参数。下面将详细介绍三个方法在一些特殊参数值下的行为: String.prototype.slice(indexStart: number, ind
2023-02-09T13:00:00Z
2023-02-09T13:00:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】本文将对javascript提取字符串的三个方法slice/substr/substring ,进行分析。 这三个方法都具有提取字符串的功能,且都有两个参数。下面将详细介绍三个方法在一些特殊参数值下的行为: String.prototype.slice(indexStart: number, ind <a href="https://www.cnblogs.com/bldf/p/17106949.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/9796339.html
js 浏览器判断 - 百里登风
javascript判断浏览器类型包括IE,FF,Opera,Safari,Chrome等
2018-10-16T02:04:00Z
2018-10-16T02:04:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】javascript判断浏览器类型包括IE,FF,Opera,Safari,Chrome等 <a href="https://www.cnblogs.com/bldf/p/9796339.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/9764496.html
javascript 十进制转换为二进制 - 百里登风
十进制转换为二进制
二进制转换为十进制
2018-10-10T01:28:00Z
2018-10-10T01:28:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】十进制转换为二进制
二进制转换为十进制 <a href="https://www.cnblogs.com/bldf/p/9764496.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/9764377.html
javascript 判断质数 - 百里登风
1.判断n是否为number类型,是否为整数,是否小于2; 2.若n == 2返回true; 3.从3至n的算术平方根(square)之间的奇数,如果n取余为0,则不是奇数。
2018-10-10T00:57:00Z
2018-10-10T00:57:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】1.判断n是否为number类型,是否为整数,是否小于2; 2.若n == 2返回true; 3.从3至n的算术平方根(square)之间的奇数,如果n取余为0,则不是奇数。 <a href="https://www.cnblogs.com/bldf/p/9764377.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/9645056.html
css 文字两端对齐 - 百里登风
1.利用 text-align: justify;属性使文字两端对齐 2.利用letter-spacing 在线查看效果
2018-09-14T02:30:00Z
2018-09-14T02:30:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】1.利用 text-align: justify;属性使文字两端对齐 2.利用letter-spacing 在线查看效果 <a href="https://www.cnblogs.com/bldf/p/9645056.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7993963.html
前端代码注释格式规范 - 百里登风
Example Class Block Example Method Block Example Property Block
2017-12-06T09:41:00Z
2017-12-06T09:41:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】Example Class Block Example Method Block Example Property Block <a href="https://www.cnblogs.com/bldf/p/7993963.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7646843.html
如何不使用loop循环创建连续的数组 - 百里登风
ES5 Array.apply(null,{length:100}) Object.keys(Array.apply(null,{length:100})); ES6 [...Array(100)]
2017-10-10T09:31:00Z
2017-10-10T09:31:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】ES5 Array.apply(null,{length:100}) Object.keys(Array.apply(null,{length:100})); ES6 [...Array(100)] <a href="https://www.cnblogs.com/bldf/p/7646843.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7576084.html
"There is no tracking information for the current branch" 解决方法 - 百里登风
因为新创建的分支push到远程仓库后没有与本地分支关联,下面语句可以令远程分支与本地分支关联起来 上面的origin/release_3.1.3是已经推送到远程的分支 末尾的release_3.1.3是本地分支
2017-09-22T09:36:00Z
2017-09-22T09:36:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】因为新创建的分支push到远程仓库后没有与本地分支关联,下面语句可以令远程分支与本地分支关联起来 上面的origin/release_3.1.3是已经推送到远程的分支 末尾的release_3.1.3是本地分支 <a href="https://www.cnblogs.com/bldf/p/7576084.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7559858.html
windows cmd 查找/关闭端口 - 百里登风
1、首先查找端口,会显示出所有的端口,比如说要找到端口为“8888”的PID 2、还可以精确查找 3、关闭对应的端口 4、使用任务管理器关闭 查看详细信息,根据查找到的pid找到对应的程序进行,结束任务
2017-09-20T01:34:00Z
2017-09-20T01:34:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】1、首先查找端口,会显示出所有的端口,比如说要找到端口为“8888”的PID 2、还可以精确查找 3、关闭对应的端口 4、使用任务管理器关闭 查看详细信息,根据查找到的pid找到对应的程序进行,结束任务 <a href="https://www.cnblogs.com/bldf/p/7559858.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7519086.html
移动端竖屏/横屏判断 - 百里登风
根据 window.orientation 判断移动设备处于横屏(landscape)/竖屏(portrait)
2017-09-14T01:46:00Z
2017-09-14T01:46:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】根据 window.orientation 判断移动设备处于横屏(landscape)/竖屏(portrait) <a href="https://www.cnblogs.com/bldf/p/7519086.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7193329.html
jq、js判断元素是否在可视区域内 - 百里登风
2017-07-17T03:06:00Z
2017-07-17T03:06:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】 <a href="https://www.cnblogs.com/bldf/p/7193329.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7155673.html
伪数组转换为数组 - 百里登风
1. 使用数组的slice()方法 2.使用ES6中Array.from方法
2017-07-12T07:21:00Z
2017-07-12T07:21:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】1. 使用数组的slice()方法 2.使用ES6中Array.from方法 <a href="https://www.cnblogs.com/bldf/p/7155673.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7148848.html
select2去除搜索框 - 百里登风
将属性minimumResultsForSearch设置为-1即可 $(".select2").select2({ minimumResultsForSearch: -1 });
2017-07-11T01:00:00Z
2017-07-11T01:00:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】将属性minimumResultsForSearch设置为-1即可 $(".select2").select2({ minimumResultsForSearch: -1 }); <a href="https://www.cnblogs.com/bldf/p/7148848.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7132162.html
js冒泡排序 - 百里登风
JS冒泡排序 原理 :依次比较相邻的两个值,如果后面的比前面的小,则将小的元素排到前面。依照这个规则进行多次并且递减的迭代,直到顺序正确。 时间复杂度,空间复杂度,稳定性 说明
2017-07-07T06:49:00Z
2017-07-07T06:49:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】JS冒泡排序 原理 :依次比较相邻的两个值,如果后面的比前面的小,则将小的元素排到前面。依照这个规则进行多次并且递减的迭代,直到顺序正确。 时间复杂度,空间复杂度,稳定性 说明 <a href="https://www.cnblogs.com/bldf/p/7132162.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7065295.html
Electron "jQuery/$ is not defined" 解决方法 - 百里登风
参考问题:https://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined 亲测可解决此问题!
2017-06-22T07:35:00Z
2017-06-22T07:35:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】参考问题:https://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined 亲测可解决此问题! <a href="https://www.cnblogs.com/bldf/p/7065295.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/7054295.html
js获取谷歌浏览器版本 - 百里登风
根据浏览器的useragent获取浏览器信息
2017-06-20T07:01:00Z
2017-06-20T07:01:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】根据浏览器的useragent获取浏览器信息 <a href="https://www.cnblogs.com/bldf/p/7054295.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/6760192.html
jquery promise (Deferred) - 百里登风
jquery promise
2017-04-25T01:05:00Z
2017-04-25T01:05:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】jquery promise <a href="https://www.cnblogs.com/bldf/p/6760192.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/6697753.html
jquery 获取表单的内容以JSON对象形式返回 - 百里登风
添加一个serializeJson方法 username: email: introdution:
2017-04-12T01:55:00Z
2017-04-12T01:55:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】添加一个serializeJson方法 username: email: introdution: <a href="https://www.cnblogs.com/bldf/p/6697753.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/6645225.html
vue 自定义组件使用v-model - 百里登风
v-model指令其实是下面的语法糖包装而成: 在一个组件上使用 v-model 时,会简化为: 因此,对于一个带有 v-model 的组件,它应该如下: 接收一个 value prop 触发 input 事件,并传入新值 利用 $emit 触发 input 事件: 组件1: 组件2: 查看在线例子
2017-03-30T03:35:00Z
2017-03-30T03:35:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】v-model指令其实是下面的语法糖包装而成: 在一个组件上使用 v-model 时,会简化为: 因此,对于一个带有 v-model 的组件,它应该如下: 接收一个 value prop 触发 input 事件,并传入新值 利用 $emit 触发 input 事件: 组件1: 组件2: 查看在线例子 <a href="https://www.cnblogs.com/bldf/p/6645225.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/bldf/p/6638529.html
IE9下table th不显示边框解决方法 - 百里登风
添加下面两行样式即可
2017-03-29T02:47:00Z
2017-03-29T02:47:00Z
百里登风
https://www.cnblogs.com/bldf/
【摘要】添加下面两行样式即可 <a href="https://www.cnblogs.com/bldf/p/6638529.html" target="_blank">阅读全文</a>