利用setInterval(func, interval)函数可以实现最简单的动画
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>404 页面不存在</title>
<style>
.bg{
background-image: url(http://qn.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,点击下载
免费用户每24小时的流量限制是250M,对于google等网页浏览要求是满足的。
提供OpenVPN, PPTP and L2TP/IPsec等模式的VPN服务。
Please note that PPTP and L2TP/IPsec do not provide adequate protection against traffic snooping. If you require connection security we strongly recommend using OpenVPN.
安全起见,官方建议使用OpenVPN服务。
适用于Windows, Mac OS X, Android, IOS等平台。
一个国外的网站http://skyssh.com/,可以免费注册并使用Japan的SSH账号。
到站长之家的查询工具查询到,skyssh网站服务器位于新加坡 Softlayer亚太数据中心。
C:\Users\zhi>ping skyssh.com
正在 Ping skyssh.com [198.252.101.149] 具有 32 字节的数据:
来自 198.252.101.149 的回复: 字节=32 时间=246ms TTL=43
请求超时。
请求超时。
来自 198.252.101.149 的回复: 字节=32 时间=246ms TTL=43
198.252.101.149 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 2,丢失 = 2 (50% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 246ms,最长 = 246ms,平均 = 246ms
ping的结果显示有数据包丢失,skyssh 注册SSH账号仍旧需要翻墙才能访问。
访问显示 ERR_CONNECTION_RESET,是否被墙?
可以通过createssh.
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’