Almost Sorted ArrayProblem DescriptionWe are all familiar with sorting algorithms: quick sort, merge sort, heap sort, insertion sort, selection sort, ...
分类:
其他好文 时间:
2015-11-19 14:58:49
阅读次数:
213
本文为大家讲解下Javascript selection的兼容性写法,感兴趣的朋友可以参考下function getSelectedText() { //this function code is borrowed from: http://www.codetoad.com/javascript_g...
分类:
编程语言 时间:
2015-11-17 18:32:10
阅读次数:
142
上周抽空把去年写的富文本重写了一下,封装成基本UI组件,就可以在聊天框之外的地方复用了。个人觉得富文本是个兼容问题最多的模块之一,尤其是文档也没几个,把mozilla的api文档和IE的dom api关于selection和range的看了一个遍,一个个试,总算找到勉强能用的方法。其实之前的富文本代...
简介术语属性方法document.activeElementdocument.designMode = 'on';简介selection是对当前激活选中区(即高亮文本)进行操作。在非IE浏览器(Firefox、Safari、Chrome、Opera)下可以使用window.getSelection(...
分类:
编程语言 时间:
2015-11-12 14:53:49
阅读次数:
1925
在Extjs中,可以通过 selType添加复选框Ext.define('ConnGrid', {
title:'关联',
extend: 'Ext.grid.Panel',
xtype: 'checkbox-selection',
store: connStore,
selType: 'checkboxmodel...
分类:
Web程序 时间:
2015-11-11 16:34:12
阅读次数:
308
这里介绍的一个小技巧是如何用JavaScript获取页面上被选中的文字的方法。最关键的JavaScript API是:event.selection = window.getSelection();这里的selection实际上是个对象,但如果我们使用.toString()或强行转化成字符串,我们将...
分类:
编程语言 时间:
2015-11-06 14:49:33
阅读次数:
253
CSS美化INPUT placeholder效果。CSS代码美化文本框里的placeholder文字。::selection伪元素 简而言之:单冒号(:)用于CSS3伪类,双冒号(::)用于CSS3伪元素。 伪元素由双冒号和伪元素名称组成。双冒号是在当前规范中引入的,用于区分伪类和伪元素。但是伪.....
分类:
其他好文 时间:
2015-11-05 14:57:34
阅读次数:
216
public final Cursor query (Uri uri, String[] projection,String selection,String[] selectionArgs, StringsortOrder) 第一个参数,uri是一个唯一的标识用来标识所要访问的Provider ? 第二个参数,projectio...
分类:
其他好文 时间:
2015-11-01 18:09:24
阅读次数:
134
Problem Description:We are all familiar with sorting algorithms: quick sort, merge sort, heap sort, insertion sort, selection sort, bubble sort, etc. ...
分类:
其他好文 时间:
2015-11-01 17:59:59
阅读次数:
217
Problem DescriptionWe are all familiar with sorting algorithms: quick sort, merge sort, heap sort, insertion sort, selection sort, bubble sort, etc. B...
分类:
其他好文 时间:
2015-11-01 16:39:51
阅读次数:
259