Home  >  Article  >  Web Front-end  >  Atitit. Toast alert loading js控件   atiToast v2新特性_html/css_WEB-ITnose

Atitit. Toast alert loading js控件   atiToast v2新特性_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:22:11978browse

Atitit. Toast alert loading js控件   atiToast v2新特性

 

1.  连续多个txt追加的原理

   var txt = document.createElement("p");  

    txt.setAttribute("id","msgTxt");  

    txt.style.margin="16px 0";

txt.style.color="#333";

 

    txt.innerHTML = str;  

    document.getElementById("alertmsgDiv").appendChild(txt);  

2.  V1  新特性

可以连续多个txt追加

 

作者::  ★(attilax)>>>   绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 ) 汉字名:艾龙,  EMAIL:1466519819@qq.com

 

3.  V2改名toast

语法方法实现android  toast的方法。。

增加默认的延时关闭(10s)

语法采用alert语法。。预计要增加android toast的markText语法。

 

 

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn