Example code: Simple Context Menu
$(function(){
$.contextMenu({
selector: '.context-menu-one',
callback: function(key, options) {
var m = "clicked: " + key;
Description
The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server.
Beta
This library is in Beta. We’re comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the
当发生错误 TypeError: $(…).on is not a function 时,当不存在javascript类冲突的前提下,考虑是否是因为jquery版本过低!
参考:
http://stackoverflow.com/questions/15670352/typeerror-on-is-not-a-function
http://stackoverflow.com/questions/18958775/typeerror-jquery-on-is-not-a-function… Read More
HTML5的video和audio标签是用来在网页中加入视频和音频的标签,在支持html5的浏览器中不需要预先加载Adobe Flash浏览器插件就能轻松快速的播放视频和音频文件。而html5media.js可以在不支持html5的浏览器上使video和audio标签生效。
How to enable <video> and <audio> tags in all major browsers
To make HTML5 video and audio tags work in all major browsers, simply add the following line of code somewhere in the <he… Read More
Backstretch
Backstretch is a simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element. The image will stretch to fit the page/element, and will automatically resize as the window/element size changes.
Demo
There are a couple of examples included with this package, or feel free to check… Read
1. Vegas Background jQuery Plugin
Vegas is a jQuery plugin to add beautiful fullscreen backgrounds to your webpages. You can even create amazing Slideshows.s
SourceDemo
2. Backstretch
A simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element
Source + Demo
3. Supersized jQuery Plugin… Read More
最近专注研究 jQuery Mobile —— 一款很方便就可以把 Web App 包装成适合 Android 与 iPhone 等触屏移动设备的 Javascript 库,结合 jQuery Mobile 与 HTML5 ,可以很方便的开发出一款具有良好界面及用户体验的 Web App,在这个过程中我收获良多,因此决定针对使用 jQuery Mobile 与 HTML5 开发 Web App 写一个系列的文章。在开始之前,我首先简述 Web App 与原生 App 各自的优缺点。
一. Web App 与原生 App 的优缺点
1.Web App
(1).优点
1.开发成本低,周期短, Web 开发者可以使用现成的工具及开发技术。
2.跨平台,用户只需要一个标准的移动浏览器。
3.维… Read More