Fix bug 570

pull/170/head^2
Caroline 2024-07-04 19:50:34 +08:00
parent 9215339b1e
commit d8263d17e0
2 changed files with 5 additions and 3 deletions

View File

@ -185,9 +185,11 @@ function compareWord(first, second) {
/**
*
*
* 随机选取 10 个单词学习
*/
function random_select_word(word) {
alert("点击熟悉与不熟悉之后,单词自动返回生词库")
// 获取所有带有 "word-container" 类的 <p> 标签
const container = document.querySelector('.word-container');

View File

@ -146,8 +146,8 @@
允许动态调整顺序
</label>
<br>
<a class="btn btn-info" style="background:red;color:#ffff" onclick="random_select_word('{{ word }}')" role="button">随机选取10个</a>
<a class="btn btn-info" style="background:red;color:#ffff" onclick="location.reload();" role="button">显示所有生词</a>
<a class="btn btn-primary btn-lg" onclick="random_select_word('{{ word }}')" role="button">随机选取10个</a>
<a class="btn btn-primary btn-lg" onclick="location.reload();" role="button">显示所有生词</a>
</p>
<a name="aaa"></a>
<div class="word-container">