同步加载
在介绍js异步加载之前,我们先来看看什么是js同步加载。我们平时最常使用的就是这种同步加载形式:
同步模式,又称阻塞模式,会阻止浏览器的后续处理,停止了后续的解析,因此停止了后续的文件加载(如图像)、渲染、代码执行。一般的script标签(不带async等属性)加载时会阻塞浏览器,也就是说,浏览器在下载或执行该js代码块时,后面的标签不会被解析,例如在head中添加一...
分类:
Web程序 时间:
2014-08-06 22:58:02
阅读次数:
301
工厂模式看英文书的时候挺纠结的,Head First里面感觉讲得很乱,都快看不下去了,看中文别人总结的,一条主线马上就出来了。工厂模式主要分三种1) simple factory model (static factory model) 2)factory method model 3)abstar...
分类:
其他好文 时间:
2014-08-06 22:43:16
阅读次数:
305
Problem DescriptionThe Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between vil...
分类:
其他好文 时间:
2014-08-06 18:02:11
阅读次数:
275
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-08-06 14:35:41
阅读次数:
177
<!DOCTYPE html> <html> <head> ? ? <title></title> ? ? <meta charset="utf-8"/> ? ? <style type="text/css"> ? ? ? ? body,ul,li{ ? ? ? ? ? ? margin: 0; ? ? ? ? ? ? padding: 0; ?...
分类:
其他好文 时间:
2014-08-06 10:42:22
阅读次数:
265
Another list manipulation problem.class Solution {public: ListNode *reverseKGroup(ListNode *head, int k) { if (!head) return head; if...
分类:
其他好文 时间:
2014-08-06 06:14:10
阅读次数:
232
条件:根目录下两个文件夹fun,head
./fun/function.h ./fun/function.c
./head/define.h
./main.c
以下为对应的文件源码,相对比较简单,仅仅起一个抛砖引玉的作用,到时候只需要照搬就行。
function.h
#include
#include
#include "../head/define.h"
void show_h...
分类:
数据库 时间:
2014-08-06 02:04:50
阅读次数:
245
控制权限就是控制运动所有的运动都应该是可以控制的。比如var age = 30;这么一条赋值语句,这个语句中有个动词“=”,它的意思是赋值,赋值是动词。赋值导致了系统状态的变更,可以导致系统的状态变更的就是Command,是Command就要有办法控制(head、get、read、query等操作是...
分类:
其他好文 时间:
2014-08-06 01:47:10
阅读次数:
232
在以前的struts2版本中s:datetimepicker只需要在head标签处设置<s:head theme="ajax"/>,就可以直接使用s:datetimepicker的标签了。 而在2.1.6版本中不能直接这样使用了,将datetimepicker移除了。原因是此标签调...
分类:
其他好文 时间:
2014-08-05 23:15:50
阅读次数:
559
测试环境:xp ,ie7~8 ?chrome。 link 伪类 :(:link,:visited) ?这个是链接专用 动态伪类 :(:hover,:active,:focus) <!DOCTYPE?html>
<html>
<head></head>
<style?type="text/css">
a:link,input:hover...
分类:
Web程序 时间:
2014-08-05 23:14:50
阅读次数:
506