- 浏览: 303911 次
- 性别:
- 来自: 北京
最新评论
文章列表
<html>
<head>
<title>Test</title>
</head>
<body>
<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAABt0lEQVR42u3S220FQQwCUNpJrWks7aSDpITLPDwYM9J+GtDR4uvn+zfvs4f/L14EVrw4rHhxWPHisOLFYcWLw4oXhxUvDiteHFa8OKx4cVjx4rDixWHFi8OKF ...
MessageFormat
- 博客分类:
- java
package net.demo.test.date;
import java.text.MessageFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Locale;
public class Callout {
private static String CALLOUT_START_TIME = "08 ...
html5 base64
- 博客分类:
- html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>html5 img to base64 example</title>
<script type="text/javascript" src="/thirdparty/jQuery/jquery-2.0.0.min.js" ...
<STYLE TYPE="text/css">
<!-- /* include the idautomation.com Code39 WOFF Font -- */
@font-face {
font-family: IDAutomationHC39M;
src: url(http://www.idautomation.com/barcode-fonts/woff-web-fonts/IDAutomationHC39M.woff);
}
-->
</STYLE> ...
.navbar .nav ul {
border-radius: 4px;
left: 0;
list-style-type: none;
margin-left: 0;
opacity: 0;
position: absolute;
top: 0;
width: 234px;
-webkit-transform: scale(1, 0.99);
-webkit-transform-origin: 0 0;
visibility: hidden;
-webkit-transition: 0.3s ease-out;
...
spring mvc json直输
- 博客分类:
- spring
<!-- json转换器 -->
<bean id="jsonConverter" class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">
<property name="supportedMediaTypes" value="application/json" />
</bean>
@Controller
@RequestMappi ...
%JAVA_HOME%
- 博客分类:
- java
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_20\
set PATH=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
set CLASSPATH=.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
http://www.feelcss.com/demo/html5-player/music-player.html
-- Oracle create user.sql
------------------------创建用户----------------------
create user 20131026 identified by 20131026
default tablespace ring
temporary tablespace temp
/
------------------------授权用户----------------------
grant connect, resource, create any table, drop any table, ...
<div id="mDiv" style="display:none">DIV1</div>
if($("#mDiv").is(":hidden")){
$(this).show();
}else{
$(this).hide();
}
.navbar .nav ul {
border-radius: 4px;
left: 0;
list-style-type: none;
margin-left: 0;
opacity: 0;
position: absolute;
top: 0;
width: 234px;
-webkit-transform: scale(1, 0.99);
-webkit-transform-origin: 0 0;
visibility: hidden;
-webkit-transition: 0.3s ease-out;
...
mysql删除重复行
- 博客分类:
- mysql
MYSQL用以下词句就可以:
delete t_user from t_user , (select id from t_user group by username having count(*)>1 ) as t2 where t_user.id=t2.id;
mysql> select * from t_user;
+----+----------+------+
| id | username | age |
+----+----------+------+
| 1 | aaa | 20 |
| 2 | aaa | ...
求完数, 最大公约数
- 博客分类:
- java
package net;
public class T {
public static void main(String[] args) {
int i, j;
for (i = 1; i <= 1000; i++) {
int sum = 0;
for (j = 1; j < i; j++) {
if (i % j == 0)
sum = sum + j;
}
if (sum == i)
System.out.print(i + " ");// 6 28 496
...
1. 请用程序写出冒泡排序算法,并做相应改进使得排序效率更高
2. 写一个函数判断字符串中"{"与"}","["与"]","("与")"匹配,"{"必须在"}"前面,"["必须在"]"前面,"("必须在")"前面,可以嵌套
3. 求最大公约数和最小公倍数
boolean matchBracket(String str)
{
...
var area = [];
var Areautil = {
getArea: function(){
if(area.length > 0) {
return area;
} else {
$.ajax({
type: 'get',
url: 'example.action',
data: {'id':Math.random()},
async: ...