在控制台应用程序中,可以使用ascii转轮,如GUI等待游标,以指示工作正在完成。一个普通的旋转器循环使用以下4个字符:'|','/','-','\'
还有哪些循环动画序列可以为控制台应用程序增添趣味?
在控制台应用程序中,可以使用ascii转轮,如GUI等待游标,以指示工作正在完成。一个普通的旋转器循环使用以下4个字符:'|','/','-','\'
还有哪些循环动画序列可以为控制台应用程序增添趣味?
当前回答
绝对LOLLERSKATES !
/\O | _O | O
/\/ | //|_ | /_
/\ | | | |\
/ \ | /| | / |
LOL LOL | LLOL | LOLLOL
-----------+----------+-----------
Frame 0 | Frame 1 | Frame 2
其他回答
在这里观看他们的行动:
var nl = "\r\n"; var spinners = [ "←↖↑↗→↘↓↙", "▁▃▄▅▆▇█▇▆▅▄▃", "▉▊▋▌▍▎▏▎▍▌▋▊▉", "▖▘▝▗", "▌▀▐▄", "┤┘┴└├┌┬┐", "◢◣◤◥", "◰◳◲◱", "◴◷◶◵", "◐◓◑◒", "|/-\\", ".oO@*", ["◡◡", "⊙⊙", "◠◠"], ["◜ ", " ◝", " ◞", "◟ "], "◇◈◆", "⣾⣽⣻⢿⡿⣟⣯⣷", "⡀⡁⡂⡃⡄⡅⡆⡇⡈⡉⡊⡋⡌⡍⡎⡏⡐⡑⡒⡓⡔⡕⡖⡗⡘⡙⡚⡛⡜⡝⡞⡟⡠⡡⡢⡣⡤⡥⡦⡧⡨⡩⡪⡫⡬⡭⡮⡯⡰⡱⡲⡳⡴⡵⡶⡷⡸⡹⡺⡻⡼⡽⡾⡿⢀⢁⢂⢃⢄⢅⢆⢇⢈⢉⢊⢋⢌⢍⢎⢏⢐⢑⢒⢓⢔⢕⢖⢗⢘⢙⢚⢛⢜⢝⢞⢟⢠⢡⢢⢣⢤⢥⢦⢧⢨⢩⢪⢫⢬⢭⢮⢯⢰⢱⢲⢳⢴⢵⢶⢷⢸⢹⢺⢻⢼⢽⢾⢿⣀⣁⣂⣃⣄⣅⣆⣇⣈⣉⣊⣋⣌⣍⣎⣏⣐⣑⣒⣓⣔⣕⣖⣗⣘⣙⣚⣛⣜⣝⣞⣟⣠⣡⣢⣣⣤⣥⣦⣧⣨⣩⣪⣫⣬⣭⣮⣯⣰⣱⣲⣳⣴⣵⣶⣷⣸⣹⣺⣻⣼⣽⣾⣿", "⠁⠂⠄⡀⢀⠠⠐⠈", [">))'>", " >))'>", " >))'>", " >))'>", " >))'>", " <'((<", " <'((<", " <'((<"], [" /\\O\n /\\/\n /\\\n / \\\n LOL LOL", " _O\n //|_\n |\n /|\n LLOL", " O\n /_\n |\\\n / |\n LOLLOL"], [ "╔════╤╤╤╤════╗\n║ │││ \\ ║\n║ │││ O ║\n║ OOO ║", "╔════╤╤╤╤════╗\n║ ││││ ║\n║ ││││ ║\n║ OOOO ║", "╔════╤╤╤╤════╗\n║ / │││ ║\n║ O │││ ║\n║ OOO ║", "╔════╤╤╤╤════╗\n║ ││││ ║\n║ ││││ ║\n║ OOOO ║" ], [ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\===%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ==%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ =%^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ %^,"+nl+ " ' \\@ >"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%"+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%=="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%==="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "'-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%==="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ' ______>,^____\\"+nl+ " ' \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%==="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' \\ ,^%==="+nl+ " ' \\@ <"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '|"+nl+ " ' | ,^%---"+nl+ " ' |@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '/"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '|"+nl+ " ' | ,^%---"+nl+ " ' |@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '/"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '/"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ______>,^____\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '|"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " _______>,^___\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' | ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '|"+nl+ " ' / ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " _______>,^___\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " '\\"+nl+ " ' | ,^%---"+nl+ " ' /@ < \\"+nl+ " ' `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ "' '/"+nl+ " ' ' / \\_,^%---"+nl+ " ' ' /@ < \\"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ ";''"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%==="+nl+ " ' ' /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " ;''"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%==="+nl+ " ' ' /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " ;''"+nl+ " '"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%==="+nl+ " /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " ;'"+nl+ " '"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%=="+nl+ " /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " ; "+nl+ " '"+nl+ " ' '/ /"+nl+ " ' ' / \\,^%="+nl+ " /@ <"+nl+ " `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ "'. ;'."+nl+ " '- .' '/ _"+nl+ "*) / ' ' / \\=%"+nl+ " _\\ ' ' /@ >"+nl+ "'~ `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ "`-."+nl+ " '. ;"+nl+ " '- . ' '/_"+nl+ "{ (*) / ' ' / \\==@^"+nl+ " _\\ ' ' /@ >"+nl+ ".;;'~ `\\/> _"+nl+ " ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " \\\\\\\\"+nl+ ".-' `-. ;"+nl+ " '.'"+nl+ " '- '|"+nl+ " {{ (*) / '' |===@^"+nl+ " _\\ |@ >"+nl+ " .;;'~ `\\/> _"+nl+ "/~~''~ ________>,^__\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " \\\\\\\\ ;"+nl+ " .-' `-. '"+nl+ " .-' '. ''"+nl+ " .' '- \\"+nl+ "' {{ (*) /===@^,/"+nl+ "-. _\\ >"+nl+ " ~-. .;;'~|@ \\/> _"+nl+ " ///~~''~______`__>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " \\\\\\\\ "+nl+ " .-' `-."+nl+ " .-' '."+nl+ " .' '- \\"+nl+ "(`-.-' {{ (*) / ===@^,/"+nl+ " } .'~-. _\\/ >"+nl+ " (/ ~-. .;;'~ / \\/> "+nl+ " ///~''~_____/@____>,^"+nl+ " \\-=-=-`-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " \\\\\\\\ YIKES"+nl+ " .-' `-."+nl+ " .-' '. /"+nl+ " .' '- ---@^,/"+nl+ " (`-.-' {{ (*) / / >"+nl+ " } .'~-. _\\ \\/> "+nl+ " (/ ~-. .;;'~_____>,^"+nl+ " ///~''~-=-=|@-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " YIKES"+nl+ " \\\\\\\\"+nl+ " .-' `-. \\"+nl+ " .-' '. ---@^,/"+nl+ " .' '- / >"+nl+ " (`-.-' {{ (*) / \\/> "+nl+ " } .'~-. _\\___>,^"+nl+ " (/ ~-. .;;'~/=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~/@-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " YIKES"+nl+ " "+nl+ " \\\\\\\\ _"+nl+ " .-' `-. ---@^,/"+nl+ " .-' '. / >"+nl+ " .' '- \\/> "+nl+ " (`-.-' . . ` {{ (*) /___>,^"+nl+ " } .'~-. . ` _\\-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-/-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " YIKES"+nl+ " "+nl+ " _"+nl+ " ` . \\\\\\\\ ---@^,/"+nl+ " ` ` .-' `-. . '/ >"+nl+ " ` .-' '. ' \\/> "+nl+ " `' ` '-___>,^"+nl+ " (`-.-' . . ` {{ (*) /-=-=-/{}"+nl+ "-~-~-~-~-~-~-`-. . ` ' \\~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " YIKES"+nl+ " "+nl+ " _"+nl+ " ` . ' ---=^,/"+nl+ " ` ` . . / >"+nl+ " ` ` \\\\\\\\ ' \\/> "+nl+ " ` ` .-' `-. ______>,^"+nl+ " ` .-' '.-=-=-=-/{}"+nl+ "~-~-~-~-~-.-~-~-~-'-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " YIKES"+nl+ " "+nl+ "` . ' _"+nl+ " ` ` ---@^,/"+nl+ " ` ` ' / >"+nl+ " ` ` \\/> "+nl+ " ` ` __________>,^"+nl+ " ` \\\\\\\\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~' `-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " ."+nl+ " ' _"+nl+ " ` . ---@^,/"+nl+ " ` ` / >"+nl+ " ` ` . \\/> "+nl+ " ` ` . __________>,^"+nl+ " ` ` ` \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~\\\\\\\\.~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ` . _"+nl+ " `` ' ===-^,/"+nl+ " ` ` >"+nl+ " ` ' \\/> "+nl+ " ` . __________>,^"+nl+ " ` \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-`-.-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " . ` ' _"+nl+ " ` ` ===-^,/"+nl+ " . >"+nl+ " ` ' \\/> "+nl+ " . __________>,^"+nl+ " ` \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ` _"+nl+ " ` ===-^,/"+nl+ " ` ` ' >"+nl+ " ` \\/> "+nl+ " __________>,^"+nl+ " \\-=-=-=-=-=-/{я}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ` ' _"+nl+ " ` ===-^,/"+nl+ " >"+nl+ " \\/> "+nl+ " __________>,^"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " _"+nl+ " ===%^,/"+nl+ " >"+nl+ " \\/> "+nl+ " __________>,^"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " \\"+nl+ " ---%^,/"+nl+ " / >"+nl+ " _/> "+nl+ " __________>,^"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " _"+nl+ " ---%^,/ "+nl+ " / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " /> _"+nl+ " _______/_>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===-^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " \\/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===-^,"+nl+ " >"+nl+ " \\/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " \\/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " я \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " Rats. / >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===-^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ===%^,"+nl+ " >"+nl+ " _/> _"+nl+ " _________>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-я~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " / >"+nl+ " /> _"+nl+ " _______/_>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"+nl+ "-ejm97-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~", " "+nl+ " "+nl+ " "+nl+ " "+nl+ " "+nl+ " ---%^,"+nl+ " I lost my fishing rod. / >"+nl+ " /> _"+nl+ " _______/_>,^_\\"+nl+ " \\-=-=-=-=-=-/{}"+nl+ "-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~"+nl+ "~ejm97~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-"], // "Fishing" taken from http://asciimator.net/kangaroo/fishing.html ]; for (var s = 0; s < spinners.length; ++s) { var spinner = spinners[s]; var div = document.createElement('div'); var el = document.createElement('pre'); div.appendChild(el); document.body.appendChild(div); (function(spinner, el) { var i = 0; setInterval(function() { el.innerHTML = spinner[i]; i = (i + 1) % spinner.length; }, 300); })(spinner, el); } pre { font-family: monospace; font-size: 1.5em; font-weight: bold; border: 1px solid #eee; display: inline-block; margin: .25em; }
还有更多@ cli-spinners,由Sindre Sorhus提供。
你可以在这里获取JSON。
我在这里把它们javascript化了:JsBin
在一个应用程序中,我看到1、2、3、4、5、6、7、8、9、0。
试试这些
“+”,“x” 'v', '<', '^', '>'
如果你知道你在这个过程中走了多远,我喜欢百分比条。它看起来很漂亮,感觉很直观,很容易实现:
| 0%
|| 5%
|||||| 25%
||||||||||||||||||||| 100%
我用了一个循环
Working.
Working..
Working...
我知道这很鼓舞人心