forked from mrlan/EnglishPal
Fix bug 570
parent
9215339b1e
commit
d8263d17e0
|
@ -185,9 +185,11 @@ function compareWord(first, second) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
* 随机选取 10 个单词学习
|
||||||
*/
|
*/
|
||||||
function random_select_word(word) {
|
function random_select_word(word) {
|
||||||
|
|
||||||
|
alert("点击熟悉与不熟悉之后,单词自动返回生词库")
|
||||||
// 获取所有带有 "word-container" 类的 <p> 标签
|
// 获取所有带有 "word-container" 类的 <p> 标签
|
||||||
const container = document.querySelector('.word-container');
|
const container = document.querySelector('.word-container');
|
||||||
|
|
||||||
|
|
|
@ -146,8 +146,8 @@
|
||||||
允许动态调整顺序
|
允许动态调整顺序
|
||||||
</label>
|
</label>
|
||||||
<br>
|
<br>
|
||||||
<a class="btn btn-info" style="background:red;color:#ffff" onclick="random_select_word('{{ word }}')" role="button">随机选取10个</a>
|
<a class="btn btn-primary btn-lg" 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="location.reload();" role="button">显示所有生词</a>
|
||||||
</p>
|
</p>
|
||||||
<a name="aaa"></a>
|
<a name="aaa"></a>
|
||||||
<div class="word-container">
|
<div class="word-container">
|
||||||
|
|
Loading…
Reference in New Issue