摘要: JavaScript 中 typeof 和 instanceof 常用来判断一个变量是否为空,或者是什么类型的。但它们之间还是有区别的: typeof typeof 是一个一元运算,放在一个运算数之前,运算数可以是任意类型。 它返回值是一个字符串,该字符串说明运算数的类型。typeof 一般只能返回 阅读全文
posted @ 2017-06-26 14:18 liuhongxia 阅读(168) 评论(0) 推荐(0) 编辑
摘要: test 兴趣爱好 兴趣爱好 兴趣爱好 兴趣爱好 兴趣爱好 兴趣爱好 兴趣爱好 兴趣爱好 兴趣爱好 兴趣爱好 兴趣爱好 阅读全文
posted @ 2017-06-22 17:21 liuhongxia 阅读(2405) 评论(0) 推荐(0) 编辑
摘要: 第一种是比较常规的方法 思路: 1.构建一个新的数组存放结果 2.for循环中每次从原数组中取出一个元素,用这个元素循环与结果数组对比 3.若结果数组中没有该元素,则存到结果数组中 第二种方法比上面的方法效率要高 思路: 1.先将原数组进行排序 2.检查原数组中的第i个元素 与 结果数组中的最后一个 阅读全文
posted @ 2017-06-05 17:54 liuhongxia 阅读(2501) 评论(0) 推荐(0) 编辑
摘要: 百度地图API地址:http://developer.baidu.com/map/jsdemo.htm#i3_2、 百度地图设置div样式宽高为百分比不显示地图,只要在样式代码里面加以 position:absolute; 代码就可以了 <style type="text/css"> body, h 阅读全文
posted @ 2017-05-31 18:51 liuhongxia 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1、GIT 如何在不提交Commit的情况下切换分支 用git stash 暂存起来,切换回来的时候用git stash apply重新获取刚才的变更。切换的时候给你一个干净的工作目录 https://git-scm.com/book/zh/v1/Git-%E5%B7%A5%E5%85%B7-%E5 阅读全文
posted @ 2017-05-25 22:13 liuhongxia 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 原链接:https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%88%9D%E6%AC%A1%E8%BF%90%E8%A1%8C-Git-%E5%89%8D%E7%9A%84%E9%85%8D%E7%BD%AE 阅读全文
posted @ 2017-05-25 22:12 liuhongxia 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/bboyjoe/article/details/51064769 阅读全文
posted @ 2017-05-25 12:52 liuhongxia 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Sublime Text 3 快捷键精华版 Ctrl+Shift+P:打开命令面板 Ctrl+P:搜索项目中的文件 Ctrl+G:跳转到第几行 Ctrl+W:关闭当前打开文件 Ctrl+Shift+W:关闭所有打开文件 Ctrl+Shift+V:粘贴并格式化 Ctrl+D:选择单词,重复可增加选择下 阅读全文
posted @ 2017-05-25 12:51 liuhongxia 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.jb51.net/html5/171764.html 阅读全文
posted @ 2017-05-24 10:29 liuhongxia 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 系统环境 win7+IE11 报错描述: Exception in window.onload: Error: An error has ocurredJSPlugin.3005 Stack Trace: Error: An error has ocurredJSPlugin.3005 at get 阅读全文
posted @ 2017-04-18 09:24 liuhongxia 阅读(1305) 评论(0) 推荐(0) 编辑