新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
jQuery插件—粘貼事件
- $.fn.pasteEvents = function( delay ) {
- if (delay == undefined) delay = 20;
- return $(this).each(function() {
- var $el = $(this);
- $el.on("paste", function() {
- $el.trigger("prepaste");
- setTimeout(function() { $el.trigger("postpaste"); }, delay);
- });
- });
- };
調(diào)用時(shí):

我們提供的服務(wù)有:做網(wǎng)站、網(wǎng)站建設(shè)、微信公眾號(hào)開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、全州ssl等。為上1000+企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的全州網(wǎng)站制作公司
- $("#some-element").on("postpaste", function() {
- // do something
- }).pasteEvents();
新聞標(biāo)題:jQuery插件—粘貼事件
文章源于:http://m.fisionsoft.com.cn/article/coepjsd.html


咨詢
建站咨詢
