http://docs.angularjs.org打不开,是因为用的是googleapi.com作为angularjs的cdn网站。而googleapi.com被墙,要想打开angular的官方主页angularjs.org要么翻墙,要么出国,或者替换掉ajax.googleapi.com为cdn.bootcdn.com。
(function(){
function replaceUri(){
var scripts = document.getElementsByTagName("script");
// bootcdn.cn
var baseUrl = '//cdn.bootcss.com/angular.js/1.5.8/';
for(var i=0; i<scripts.length;i++){
// if exists of googleapis.com ->
var src = scripts[i].src;
if(s
...jQuery实现 有利用到jQuery的伪选择器:odd Selector, :even Selector, 事件hover( handlerIn, handlerOut )
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>11 demo - table odd color</title>
<style>
table{
border-collapse: collapse;
}
table, td, th{
border: 1px solid #ccc;
}
th, td{
padding:8px;
}
.silver{
background-color: green !important;
}
</style>
</head>
<body>
&l
...利用setInterval(func, interval)函数可以实现最简单的动画
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>404 页面不存在</title>
<style>
.bg{
background-image: url(//qiniu.uqugu.com/img/blog/bg-scroll/maze_bg.png);
}
</style>
</head>
<body class="bg">
<script>
function bgScroll(){
var bgX = 0;
setInterval(function(){
bgX -= 1;
...报错:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
方法一:
> pip install MySQL-python
方法一由于网络和编译环境的原因失败率大,最好选用方法二。
方法二:
下载MySQL-python,到sourceforge.net,点击下载
...Handlebars provides the power necessary to let you build semantic templates effectively with no frustration.
Handlebars templates look like regular HTML, with embedded handlebars expressions.
A handlebars expression is a {{, some contents, followed by a }}
Handlebars.js大概就是供给js渲染的一种模版吧,他是用{{, }}这样的标记,但是会和Django本来的模版标记冲突。
...Stops the template engine from rendering the contents of this block tag.
A common use is to allow a JavaScript template layer that collides with Django’