12 2017 档案

摘要:Javascript中document.execCommand()的用法 合并转载: 转载出处1 转载出处2 document.execCommand()方法处理Html数据时常用语法格式如下:document.execCommand(sCommand[,交互方式, 动态参数])其中:sComman 阅读全文
posted @ 2017-12-27 09:48 carsonwuu 阅读(286) 评论(0) 推荐(0)
摘要:dhtmlXTree 中文API 转载出处 dhtmlXTree是一个功能比较强大的树控件,基本上能满足大部分常规需求,比较好用。 当然,在使用过程中还是发现一点点问题。下面是我整理的一些里面常用函数的说明(只有简单的说明,如果要看详细的说明,自己查看原函数去): 补充说明:加载树时,必须确保所有节 阅读全文
posted @ 2017-12-26 14:30 carsonwuu 阅读(277) 评论(0) 推荐(0)
摘要:addEventListener事件方法 一、事件函数调用语法: 必须。字符串,指定事件名。 注意: 不要使用 "on" 前缀。 例如,使用 "click" ,而不是使用 "onclick"。 true - 事件句柄在捕获阶段执行 false- false- 默认。事件句柄在冒泡阶段执行 二、事件触 阅读全文
posted @ 2017-12-13 12:34 carsonwuu 阅读(4715) 评论(0) 推荐(0)
摘要:来源:https://github.com/LiHongyao BOM介绍document、 frames、 history、 location、 navigator、 screen 一、概述 BOM(Browers Object Model,浏览器对象模型)是浏览器为JavaScript提供的一个 阅读全文
posted @ 2017-12-11 17:26 carsonwuu 阅读(447) 评论(0) 推荐(0)
摘要:来源:https://github.com/LiHongyao/JavaScript/blob/master/%E7%AC%AC13%E7%AB%A0%20Web%20Storage%E6%9C%BA%E5%88%B6.md Web Storage机制 一、概述 “Web Storage”是HTML 阅读全文
posted @ 2017-12-11 12:14 carsonwuu 阅读(500) 评论(0) 推荐(0)
摘要:50. Pow(x, n) javascript使用var声明数据变量,变量没有固定的类型,如果需要使用整数,使用parseInt()进行转换。 阅读全文
posted @ 2017-12-09 22:06 carsonwuu 阅读(140) 评论(0) 推荐(0)
摘要:6. ZigZag Conversion The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pat 阅读全文
posted @ 2017-12-09 19:33 carsonwuu 阅读(148) 评论(0) 推荐(0)
摘要:最长回文字符串 思路:中心元素判定法,算法复杂度O(n*n),从当前元素current出发,同时向左current-1与currend+1方向判断,知道两个元素不相等,不断地更新最长回文字符串。 需要注意的是,aba与abba两种方式是不一样的。 阅读全文
posted @ 2017-12-07 00:34 carsonwuu 阅读(425) 评论(0) 推荐(0)