在Eclipse中配置Struts2第一个HelloWorld项目
YOUKU:北京圣思园struts2深入详解视频
| function previewImage(file) { | |
| var porImg = $('#biuuu'), //首先获取大图片jquery对象 | |
| viewImg = $('#view'); //小图片jquery对象 | |
| //判断该浏览器是否为w3c标准,既非IE浏览器 | |
| if (file["files"] && file["files"][0]) { | |
| //使用JavaScript的FileReader对象来读取本地数据,并且将数据结果赋值给image的src,具体该对象如何实现的还未深入研究 | |
| var reader = newFileReader(); | |
| reader.onload = function(evt) { | |
| porImg.attr({ | |
| src: evt.target.result |
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <title>javascript实现页面打印(适合B/S)程序</title> | |
| <script src="js/jquery-1.6.4.min.js"></script> | |
| <script src="js/jquery.printPage.js"></script> | |
| <script type="text/javascript"> | |
| $(document).ready(function () | |
| { |
| /** | |
| * jQuery printPage Plugin | |
| * @version: 1.0 | |
| * @author: Cedric Dugas, http://www.position-absolute.com | |
| * @licence: MIT | |
| * @desciption: jQuery page print plugin help you print your page in a better way | |
| */ | |
| (function($) { | |
| $.fn.printPage = function(options) { |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title>标题</title> | |
| <meta name="description" content="描述"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <!-- FUCK 360 --> | |
| <meta name="renderer" content="webkit|ie-comp|ie-stand"> |
| 展开缩写 – Tab or Ctrl+E | |
| 互动式展开缩写 — Ctrl+Alt+Enter | |
| 标签对匹配外 – Ctrl+, | |
| 标签对匹配内 – Shift+Ctrl+0 | |
| 对匹配– Ctrl+Alt+J | |
| 使用缩写包裹 — Shift+Ctrl+G | |
| 转到编辑点 — Ctrl+Alt+→ or Ctrl+Alt+← | |
| 选择项目– Shift+Ctrl+. or Shift+Ctrl+, | |
| 切换注释— Shift+Ctrl+/ | |
| 拆分/加入标签 — Shift+Ctrl+` |
| (function(G) { | |
| "use strict" | |
| var G = Object.prototype; | |
| G.With = function(withObj, withFun) { | |
| var keys = [], | |
| backup_Obj_pro = {}, | |
| i, | |
| len, | |
| key; | |
| for (i in withObj) { |
| .pull-quote { | |
| background: -webkit-linear-gradient(top,green 0,red 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } |
| [ | |
| { "keys": ["shift+f1"], "command": "increment_selection" } | |
| ] |
| // ==UserScript== | |
| // @name Ad Screening Program in Baidu music 百度音乐广告屏蔽程序 | |
| // @namespace http://github.com/gaubee/blog | |
| // @version 0.1 | |
| // @run-at document-start | |
| // @description 用于屏蔽百度音乐中的难听的广告声音,还有相关的广告画面 | |
| // @match http://play.baidu.com/ | |
| // @copyright 2013+, You | |
| // ==/UserScript== | |
| ;(function(){ |