一款简单的打字机效果。
注意:字符串换行使用‘\n’
- //字符串
- var str = ‘hello\nworld !’;
- //基本调用
- print(‘.printCon’).init(str);
- print(‘.printCon’).init(‘hello world’);
- //带参数调用
- print(‘.printCon’).init({
- data : str, //字符串
- speed : 100, //速度
- cursor : true, //是否显示光标
- curcon : ‘_’, //自定义光标样式
- line : false, //换行的时候是否显示序号
- hide : false, //结束的时候是否隐藏光标
- end : function(){} //结束时的回调函数
- });
❗ 丢嘞楼亩
😛 😛 😀 😀 😕 你妹
😐 😉 🙄 你妹
FFFFFFF;你好美女