今天突然用到需要动态改变tab页,
布局代码如下:
动态创建js代码如下:
function createTabs(tabs){
var html = '';
for(var i=0;i<tabs.length;i++){
html = html + createTab(tabs[i]....
分类:
Web程序 时间:
2014-06-05 09:13:35
阅读次数:
335
【题目】
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous ...
分类:
其他好文 时间:
2014-06-05 08:28:43
阅读次数:
321
iOS—修改AFNetworking源文件可接收text/plain的方法
在使用AFNetworking的时候可能会碰到下面的错误:
{ status code: 200, headers {
"Content-Length" = 14;
"Content-Type" = "text/plain;charset=utf-8";
Date = "Thu, 2...
分类:
移动开发 时间:
2014-06-05 06:05:34
阅读次数:
265
(Sorry for that click-bait heading. Couldn’t
resist ;-) )We’re on a mission. To teach you SQL. But mostly, we want to teach
you how to appreciate SQL....
分类:
数据库 时间:
2014-05-31 17:00:45
阅读次数:
1397
BMP文件由位图文件头、位图信息头、调色板和图像数据四部分组成(1)位图文件头1 typedef
struct tagBITMAPFILEHEADER2 {3 WORD bfType; //位图文件的类型,必须为BM(1-2字节)4 DWORD b...
分类:
其他好文 时间:
2014-05-31 12:54:56
阅读次数:
254
SpannableStringBuilder
官方文档解释:这个类可以使文本的内容和标记都可以改变。当我们要为TextView或者Edittext里面的文字加入加入一些效果,如下划线,颜色标
识,超链接等,类似word文档一样。这时候可以用到SpannableStringBuilder ,Spann...
分类:
其他好文 时间:
2014-05-31 11:20:12
阅读次数:
256
VML是The Vector Markup
Language(矢量可标记语言)的缩写。VML相当于IE里面的画笔,能实现你所想要的图形,而且结合脚本,可以让图形产生动态的效果。VML是微软1999年9月附带IE5.0发布的,在我认为,
VML其实是Word和HTML结合的产物。可以将Word文档另存...
分类:
其他好文 时间:
2014-05-31 04:40:13
阅读次数:
200
第一章:前言
学习笔记,记录学习STL算法的一些个人所得,在以后想用的时候可以快速拾起。 第二章:明细 copy 函数原型: template OutputIterator
copy (InputIterator first, InputIterator last, OutputIterat...
分类:
其他好文 时间:
2014-05-31 04:08:50
阅读次数:
375
使用NOPI读取Excel的例子很多,读取Word的例子不多。Excel的解析方式有多中,可以使用ODBC查询,把Excel作为一个数据集对待。也可以使用文档结构模型的方式进行解析,即解析Workbook(工作簿)、Sheet、Row、Column。Word的解析比较复杂,因为Word的文档结构模型...
分类:
其他好文 时间:
2014-05-31 00:53:10
阅读次数:
1651
Given a string, find the length of the longest
substring without repeating characters. For example, the longest substring
without repeating letters fo...
分类:
其他好文 时间:
2014-05-30 23:46:09
阅读次数:
453