上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 46 下一页
摘要: 转自:http://blog.csdn.net/yuyuers/article/details/7076704实例分析:我最近在做一个 Ajax 查询的功能,代码如下:<form name="keywordForm" method="post" action=""> <p id="profile_nav"> <label for="profile"> 关键字搜索: </label> <input style="width:80; h 阅读全文
posted @ 2013-04-11 01:08 horizon~~~ 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 前言: 我们有时候希望回车键敲在文本框(inputelement)里来提交表单(form),但有时候又不希望如此。比如搜索行为,希望输入完关键词之后直接按回车键立即提交表单,而有些复杂表单,可能要避免回车键误操作在未完成表单填写的时候就触发了表单提交。要控制这些行为,不需要借助JS,浏览器已经帮我们做了这些处理,这里总结几条规则: 1. 如果表单里有一个type=”submit”的按钮,回车键生效。 2. 如果表单里只有一个type=”text”的input,不管按钮是什么type,回车键生效。 3. 如果按钮不是用input,而是用button,并且没有加type,IE下默认... 阅读全文
posted @ 2013-04-11 01:03 horizon~~~ 阅读(327) 评论(0) 推荐(0) 编辑
摘要: $.trim()方法作用是删除一个字符串的开头和结尾的空白(包括换行、空格等等)。<!DOCTYPE html><html><head> <script src="http://code.jquery.com/jquery-1.9.1.js"></script></head><body> <pre id="original"></pre> <pre id="trimmed"></pre><scrip 阅读全文
posted @ 2013-04-11 00:26 horizon~~~ 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 当我们没有配置初始化加载hibernate的时候可以用以下代码自动生成数据库表:package com.mr.test;import java.io.File;import org.hibernate.HibernateException;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;import org.hibernate.cfg.Configuration;import org.hibernate.tool.hbm2ddl.SchemaExp 阅读全文
posted @ 2013-03-30 18:42 horizon~~~ 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 转自:https://develop.participatoryculture.org/index.php/ConversionMatrix#FFMPEG_Settings_.2F_Miro_Video_Converter FFMPEG Settings / Miro Video Converter For a simple conversion tool for os x and windows, download the Miro Video Converter Apple Format Conversions DeviceScreen ResolutionCommandiPod (Cla 阅读全文
posted @ 2013-03-29 01:19 horizon~~~ 阅读(632) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.alibuybuy.com/posts/17176.htmlMiro Video Converter 是一个开源的视频格式转换软件,几乎可以将任意视频格式转换为MP4,Theora和MP3格式。一些常见的转换:Convert AVI to MP4Convert H264 to MP4Convert MOV to MP4Convert WMV to MP4Convert XVID to MP4Convert Theora to MP4Convert MKV to MP4Convert FLV to MP4Convert AVI to Ogg TheoraConvert 阅读全文
posted @ 2013-03-29 01:17 horizon~~~ 阅读(1044) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/alvetjook/article/details/3220237 如果想创建一个代码段,也就是 snippets可以在Eclipse的editor中选中一块代码段,然后右键点击Add to Snippets....就打开了创建代码段的对话框,比如说数据库的连接什么的,弹出的对话框让你选择代码段的种类,你可以从原有的种类中选也可以输入新的种类,然后点ok,出现地对话框Customize palette 左边是代码段的树形分类,右边的name是起个好记得名字,Template Pattern 是你的选中代码,可以随意修改,还可以在Variable. 阅读全文
posted @ 2013-03-28 01:05 horizon~~~ 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 转自:http://hpi-ls.blog.163.com/blog/static/20214748201022295532305/前言:使用Tomcat进行JSP开发最头疼的莫过于中文乱码问题了,总结Tomcat乱码问题出现的原因必须明白以下几点:内容:1. Tomcat一般总是默认使用ISO-8859-1作为字符编码方式的。所以,除非你在Servlet中使用了 request.setCharacterEncoding("编码方式");指定了特殊的编码方式,否则Tomcat默认使用ISO-8859-1的编码方式。2. 在JSP页面中pageEncoding和charset 阅读全文
posted @ 2013-03-28 00:57 horizon~~~ 阅读(875) 评论(0) 推荐(0) 编辑
摘要: http://blog.sina.com.cn/s/blog_6b38618701011csx.html(html5-api)http://blog.csdn.net/temotemo/article/details/7493447(html5实例) 阅读全文
posted @ 2013-03-26 01:59 horizon~~~ 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 转自:http://html5media.info/如何在大多数主流浏览器中嵌入<video>和<audio>标签只要在我们的项目中简单的引入html5media.min.js文件,就能实现这个目的.即如下代码:<script src="http://api.html5media.info/1.1.5/html5media.min.js"></script>如何嵌入video文件在上面引入html5media.min.js文件的代码的基础上写入如下代码.<video src="video.mp4" w 阅读全文
posted @ 2013-03-26 01:57 horizon~~~ 阅读(563) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 46 下一页