leaves note

write by a programer

 
<script type="text/javascript">
	var e = jQuery.Event("keydown");//模拟一个键盘事件
	e.keyCode = 123;//keyCode=13是回车
	toastr.options={
		closeButton:true, //是否显示关闭按钮
		debug:false, //是否调试
		progressBar:true, //是否显示进度条
		positionClass:"toast-top-full-width", //消息框页面显示位置 toast-top-left/right/center/full-width 上左 右 中铺满。bottom同top
		onclick:toastrFun, //消息框点击时间
		showDuration:'4000', //显示动作时间  对应show/hide Mtthod效果时间  
		hideDuration:'3000', //隐藏动作时间  对应show/hide Mtthod效果时间
		timeOut:'30000', //自动关闭超时时间  进度条
		extendedTimeOut:'500', //  失去焦点后隐藏时间
		showEasing:'jswing',  //对应easing的显示隐藏方法
		hideEasing:'easeOutBounce',  //对应easing的显示隐藏方法
		// showMethod:'slideToggle', //  对应jquery的显示隐藏方法
		// hideMethod:'fadeOut' //  对应jquery的显示隐藏方法
	}
	toastr.success('哈哈哈哈哈哈哈','红红火火恍恍惚惚');
	toastr.info('信息内容','信息标题');
	toastr.warning('23333333','warning级别');
	toastr.error('23333','错误信息适用');
	function toastrFun(){
		alert('hi');
	}
</script>

QQ图片20170327153529.png