你已经了解了HTML标记(也称为结构),而且知道了CSS样式(也称为表示),剩下的就是Javascript(也称为行为)。JavaScript的工作方式1. 编写你创建HTML标记和JavaScript代码,并把它们放在文件中,比如说index.html和index.js(或者,也可以都放在HTML...
分类:
编程语言 时间:
2014-12-25 21:44:18
阅读次数:
303
我想让我的程序运行在RAM中而不是在SPI FLASH上,写了一个scatterfile:ROM 0x00000000 0x00200000 ;spi flash{STARTUP +0 { startup.o(RESET, +First) ;*(+RO) }RO 0x20000...
分类:
其他好文 时间:
2014-12-25 16:20:03
阅读次数:
161
Jump GameGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents yo...
分类:
其他好文 时间:
2014-12-25 14:17:40
阅读次数:
155
RESULT_OK是执行结果,有RESULT_OK,RESULT_CANCELED,RESULT_FIRST_USER 在调用系统app时返回时RESULT_CANCELED如字面意思代表取消,RESULT_OK代表成功。RESULT_FIRST_USER 我没碰到过。例如你的一个activity启...
分类:
其他好文 时间:
2014-12-25 13:00:40
阅读次数:
122
Image transformation is a process of rotating and scaling images. Rotating Images There are two ways to rotate an image. First option is to use the Ro...
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as a separator for each...
分类:
其他好文 时间:
2014-12-24 21:36:49
阅读次数:
188
题目:
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
解决方案:
/**
* Definition for singly-linked list.
...
分类:
其他好文 时间:
2014-12-24 21:32:44
阅读次数:
236
倒着处理删点,就变成了加点,于是并查集。#includeusing namespace std;#define N 400001int fa[N],kill[N],rank[N],n,m,q;bool hav[N];int next[N],first[N],v[N],en,x,y,anss[N],c...
分类:
Web程序 时间:
2014-12-24 19:55:28
阅读次数:
168
//解决比如3月31号加一个月变成5月1号等问题
$time?=?time();
//当前月份中的第几天
$day?=?date(‘j‘,$time);
//这个月的天数
$month_day?=?date(‘t‘,$time);
//这个月的第一天
$first_day_of_month_time?...
分类:
其他好文 时间:
2014-12-24 16:29:12
阅读次数:
171