引入CSS JS
//css
<link rel="stylesheet" href="https://cdn.bootcss.com/noty/3.1.4/noty.min.css">
//js
<script src="https://cdn.bootcss.com/noty/3.1.4/noty.min.js"></script>
使用方法
$(function(){

new Noty({
    text: 'success',
    layout:'center',
    theme : 'relax',
    type:'success',
    timeout:'1500',
    modal:true
}).show();

QQ截图20180607120902

更多使用方法 请查看 官方 https://ned.im/noty/[/danger]

jquery 反转 dom元素

例: <ul> <li>A</li> <li>B</li> <li>C</li> </ul> 需要变成: <ul> <li>C</li>...

阅读全文

jquery validate自定义验证规则

jQuery.validator.addMethod("check_user", function(value, element) { var check = /^[A-Za-z\s]+$/; //this.optional(element)如果元素...

阅读全文

jquery-fancybox JavaScript图片库,支持pc,响应式

官网地址 http://fancyapps.com/fancybox/3/ document:http://fancyapps.com/fancybox/3/docs/#usage github https://github.com/fancyapps/fancybox 兼容性 ...

阅读全文

欢迎留言