overriding the default options with user-supplied options and the jQuery extend() method eg: $.fn.pulse = function (options) { // Merge passed options with defaults var opts = $.extend({}, $.fn.pulse.defaults, options); return this.each(function () {…
让我们Google一下"jQuery autocomplete plugin"(jquery自动补齐插件).在过去的4年中,我已经Google了很多次这个组合了.然而结果并没有变化多少.这里有很多的选择,但是没有哪一个让我能够很有信心的去应用到产品程序中. 说实话对于选择jQuery插件来说我很挑剔.如果我的用户对于插件有问题的话,那么我就得自己处理.我其实不想担心太多的第三方代码,因此我自己开发了一个jQuery使用准则用来衡量需要考虑的一些问题.没有特别的顺序:插件必须有很好的文档…
autoUpload By default, files added to the widget are uploaded as soon as the user clicks on the start buttons. To enable automatic uploads, set this option to true. Type: boolean Default: true Please note that in the basic File Upload plugin, this op…
Java项目转Web项目 把java项目转成web项目时,发现Facets点击+号没有出现web选项. 经查询发现是插件没有正常加载导致的. 解决方案 1.没找到其他原因,重启即可. 2.我的是插件没有被加载原因是required plugin "Java EE: EJB, JPA, Servlets" is disabled 找到idea配置文件下的 disabled_plugins.txt删除重启即可…
  A few days ago, I've been facing a strange behavior with Visual Studio 2013.   No matter what solution I was opening, Visual Studio kept switching the source control plugin to Git. I was sure all my solutions were bound to TFS.   I didn't understan…
这个小项目(卡片秀)是一个卡片抽奖特效插件,用开源项目这样的词语让我多少有些羞愧,毕竟作为一个涉世未深的小伙子,用项目的标准衡量还有很大差距.不过该案例采用 jQuery 插件方式编写,提供配置参数并且做了浏览器兼容优化,整体而言作为一个小项目也不为过.目前正在持续更新. 话不多少,先上地址:https://github.com/nzbin/CardShow/tree/master 当然,博主写这篇文章不是为了炫耀这个 Demo,而是交流 jQuery 插件的编写以及这一项目中遇到的各种问题.现…
GitHub: https://github.com/nzbin/CardShow/ Demo: https://nzbin.github.io/CardShow/ 前言 这个小项目(卡片秀)是一个卡片抽奖特效插件,用开源项目这样的词语让我多少有些羞愧,毕竟作为一个涉世未深的小伙子,用项目的标准衡量还有很大差距.不过该案例采用 jQuery 插件方式编写,提供配置参数并且做了浏览器兼容优化,整体而言作为一个小项目也不为过.目前正在持续更新. 当然,博主写这篇文章不是为了炫耀这个 Demo,而是交…
webpack是什么? https://webpack.js.org/concepts/ https://code.tutsplus.com/tutorials/introduction-to-webpack-part-1--cms-25791 webpack是一个为现代javascript application而生的module bundler:模块打包器. 某种意义上说,webpack也是可以代替gulp,grunt等传统意义上的task runner,而webpack中的loader就来…
1. [代码][JavaScript]代码 01// remember to change every instance of "pluginName" to the name of your plugin!02// the semicolon at the beginning is there on purpose in order to protect the integrity03// of your scripts when mixed with incomplete obje…
How to Create a Basic Plugin Sometimes you want to make a piece of functionality available throughout your code. For example, perhaps you want a single method you can call on a jQuery selection that performs a series of operations on the selection. I…