jQuery Undo

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-15 15:28:18

软件介绍

This plugin provides a global undo utility.

You can add undo items to the stack with:

   $.undo(callback, target, message)

Where the callback function knows how to perform the actual undo-ing when executed.  This will automatically display the message (or a default one created if that parameter is absent) and an "Undo" link within items matching the '.undo' selector (which is customizable by setting $.undo.notice.selector. If no action is taken within 60 seconds, this message is hidden. If the "Undo" link is clicked or you manually call:

   $.undo()

then the plugin will execute the callback function (passing in the target as the parameter, if a target was provided).

If you simply create an empty <div class="undo"></div> in your page and start adding undo functions to $.undo(undoAction), things should "just work" as described above.  If you want more explicit control of the displayed messages, there are a variety of settings and functions you can alter in $.undo.notice that can help you customize the behavior or plug
the functionality into your own custom markup.

To enable the use of Ctrl-z to trigger undo execution, you can call:

$.undo.supportsCtrlz(true)


By default this is disabled.

The recommended CSS for the classes involved is:

.undo {
    background: #FFF1A8;
    color: black;
    display: none;
    font-size: 85%;
    font-weight: bold;
    margin:3px 0px;;
    padding: 5px 15px;
    text-align: center;
}
.undo-message {
    text-align: center;
}
a.undo-execute {
    color: blue;
    padding: 0px 2px 0px 10px;
}
a.undo-cancel {
    font-size: 80%;
    text-decoration: none;
    vertical-align: center;
}



本文地址:https://codercto.com/soft/d/23442.html

小程序大能量

小程序大能量

肖月 / 人民邮电出版社 / 2018-11 / 49.80元

本书主要针对零基础的读者,详细讲解小程序的搭建以及小程序的运营等知识。全书共有6章。第 1章重点介绍了小程序诞生的原因以及小程序的发展历史;第 2章详细讲解了快速搭建小程序的方法;第3章向读者阐述了小程序和互联网运营的关系;第4章主要介绍了小程序运营的意义;第5章全面分析了打造爆款小程序的策略;第6章重点总结了小程序的营销推广策略。 本书可以作为对小程序感兴趣的个人以及企业的学习用书,帮助读者快速......一起来看看 《小程序大能量》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具