Heim  >  Artikel  >  Web-Frontend  >  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:11977Durchsuche

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语法。

 

 

 

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn