核心思路:标准浏览器(含IE9+)比较简单,直接监听DOMContentLoaded事件;低版本的IE(IE678)两套机制:1)尝试轮询document.documentElement.doScroll("left")是否报错,若报错则dom树结构未ready,否则dom
ready;2)监听do...
分类:
其他好文 时间:
2014-05-19 18:46:52
阅读次数:
214
证明:$(1)$设$r\left( A \right) =
r$,则由$Jordan$标准形理论知,存在可逆阵$P$,使得\[{P^{ - 1}}AP = \left(
{\begin{array}{*{20}{c}}0&{{E_r}}\\0&0\end{array}} \right)\]从而可知\...
分类:
其他好文 时间:
2014-05-19 17:59:50
阅读次数:
195
复习7中最后我们得到了全纯函数各阶导数的一个估计,但是这个估计是比较粗糙的,而且还仅仅是在一点处的估计,事实上利用Pompeiu公式我们还可以得到一个更深刻的结果,我们需要先来证明一个引理,即所谓的单位分解定理.
在复平面$\mathbb C$上,定义标准函数\[\theta(z)=\left...
分类:
其他好文 时间:
2014-05-18 19:30:57
阅读次数:
374
例如:有表1,表2两张相,希望通过like进行关联查询
// mysql中使用concat连接字符串
select t1.id, t1.title, t2.keyword from t1 inner join t2 on t1.title like concat('%', t2.keyword, '%');
// oracle、postgres 使用||连接字符串,其它库使用...
分类:
其他好文 时间:
2014-05-18 15:57:36
阅读次数:
242
用jquery实现的一个超级简单的下拉菜单。
效果图
初始效果
鼠标悬浮效果
代码
nav a {
text-decoration: none;
}
nav > ul > li {
float: left;
text-align: center;
padding: 0 0.5em;
}
nav li ul.sub-menu {
...
分类:
Web程序 时间:
2014-05-18 10:48:11
阅读次数:
522
【题目】
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is.
You may not alter the values in the nodes, only n...
分类:
其他好文 时间:
2014-05-18 10:22:34
阅读次数:
367
Binary Tree Level Order Traversal
Total Accepted: 12441 Total
Submissions: 40879My Submissions
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left t...
分类:
其他好文 时间:
2014-05-18 10:11:13
阅读次数:
337
python创建二叉树,源代码如下:
#!/usr/bin/python
class node():
def __init__(self,k=None,l=None,r=None):
self.key=k;
self.left=l;
self.right=r;
def create(root):
a=raw_input('enter a key:');
if a is '#...
分类:
编程语言 时间:
2014-05-18 09:27:13
阅读次数:
384
对于本题,想到一个中序遍历后,判别是否为回文串的方法,却WA多次
class Solution {
public:
vector vectorValue;
void inOrder(TreeNode* root)
{
if(root!=NULL)
{
inOrder(root->left);...
分类:
其他好文 时间:
2014-05-18 06:38:58
阅读次数:
294
1. 写法轻松,更新效率高:
update table1
set field1=table2.field1,
field2=table2.field2
from table2
where table1.id=table2.id
2. 常规方式,种写法相当于一个 Left join, 以外面的where为更新条数,如果不加where就是所有记录
update table1
s...
分类:
数据库 时间:
2014-05-18 06:05:00
阅读次数:
294