多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
Toast ~~~ $.toast({ text: text, // Text that is to be shown in the toast heading: '提示', // Optional heading to be shown on the toast icon: icon, // Type of toast icon showHideTransition: 'fade', // fade, slide or plain allowToastClose: true, // Boolean value true or false hideAfter: 3000, // false to make it sticky or number representing the miliseconds as time after which toast needs to be hidden stack: 5, // false if there should be only one toast at a time or a number representing the maximum number of toasts to be shown at a time position: 'top-center', // bottom-left or bottom-right or bottom-center or top-left or top-right or top-center or mid-center or an object representing the left, right, top, bottom values textAlign: 'left', // Text alignment i.e. left, right or center loader: false, // Whether to show loader or not. True by default loaderBg: '#f8075b', // Background color of the toast loader beforeShow: function () {}, // will be triggered before the toast is shown afterShown: function () {}, // will be triggered after the toat has been shown beforeHide: function () {}, // will be triggered before the toast gets hidden afterHidden: function () {} // will be triggered after the toast has been hidden }); ~~~