Git Product home page Git Product logo

artmessage's Introduction

artMessage

👉 demo

介绍

1.顶部居中显示并自动消失,是一种不打断用户操作的轻量级提示方式。 2.多条消息可同时堆叠出现,彼此互不干扰。 3.兼容移动端,向下兼容到IE6,不依赖其他框架。

调用方式

artMessage(option)

option选项:

message 消息文字

duration 消息停留时间,默认为1.5(以秒为单位),设置为0表示不自动消失,可调用artMessage()方法返回的实例的out()方法手动控制消失

mask 消息显示期间是否锁定屏幕 true|false

type 消息的图标种类:'success'|'error'|'warn'|'info'|'loading'

open 消失显示后的回调函数

close 消息消失后的回调函数

License

Under MIT License. Copyright by 李昱(liyu365)

artmessage's People

Contributors

liyu365 avatar

Watchers

laaaaag avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.