javascript – 索尼子 https://bakasoniji.com 笨蛋索尼子的博客 Mon, 10 Jun 2019 07:51:48 +0000 zh-CN hourly 1 https://wordpress.org/?v=4.9.5 JavaScript 解 Word Scramble https://bakasoniji.com/2019/06/10/javascript-%e8%a7%a3-word-scramble.html https://bakasoniji.com/2019/06/10/javascript-%e8%a7%a3-word-scramble.html#comments Mon, 10 Jun 2019 07:25:12 +0000 http://soniji.mist.so/?p=272 词汇量不够,还蠢,于是就写了个JavaScript来解WordScramble了. .
需要jQuery才能运行. .

var wordList = $.getJSON('https://raw.githubusercontent.com/words/an-array-of-english-words/master/words.json');
var letters = 'yotbanl'; // 提供的字母
wordList.responseJSON.filter(function(word) {
    return word.length == letters.length;
}).filter(function(word) {
    for (var c of letters) {
        if (!word.includes(c)) {
            return false;
        }
    }
    return true;
});

[“notably”]

于是从提供的字母yotbanl里找到了对应的unscrambled单词notably. .

词库来自:https://github.com/words/an-array-of-english-words

]]>
https://bakasoniji.com/2019/06/10/javascript-%e8%a7%a3-word-scramble.html/feed 1
Bootstrap. . https://bakasoniji.com/2013/11/16/bootstrap-2.html https://bakasoniji.com/2013/11/16/bootstrap-2.html#respond Sun, 17 Nov 2013 07:01:12 +0000 http://sonic1997.urpgs.com/?p=168 http://dev.0w0.im/
make shit系列计划之BootXiuno*开始. .
还有多久会坑呢.w.?

*bootstrap+xiuno

]]>
https://bakasoniji.com/2013/11/16/bootstrap-2.html/feed 0
bootstrap~ https://bakasoniji.com/2013/06/05/bootstrap.html https://bakasoniji.com/2013/06/05/bootstrap.html#respond Thu, 06 Jun 2013 05:54:22 +0000 http://sonic1997.urpgs.com/?p=108 没啥好说的但是bootstrap真的很好用啊啊啊= =
可惜css又被我玩坏了._.

]]>
https://bakasoniji.com/2013/06/05/bootstrap.html/feed 0
no longer a 9th grader https://bakasoniji.com/2013/05/31/no-longer-a-9th-grader.html https://bakasoniji.com/2013/05/31/no-longer-a-9th-grader.html#respond Sat, 01 Jun 2013 00:20:06 +0000 http://sonic1997.urpgs.com/?p=96 于是笨蛋索尼子不再是⑨年级学生了QwQ,学期结束了,今天开始漫长的暑假…

暑假虽然长但是不知道我这死懒鬼能做出些什么东西来呢=-=
于是假期的各种目标:
php+MySQL
JavaScript
日本語(至少完成标日上册…
该死的SAT单词

希望都能够完成吧=w=(SAT单词除外…那货根本不是人学的…

]]>
https://bakasoniji.com/2013/05/31/no-longer-a-9th-grader.html/feed 0
COSO~ https://bakasoniji.com/2013/05/19/coso.html https://bakasoniji.com/2013/05/19/coso.html#respond Mon, 20 May 2013 05:59:29 +0000 http://sonic1997.urpgs.com/?p=87 一个网页MMORPG制作工具0w0

于是接下来一段时间都应该会折腾这个&JavaScript学习了= =

]]>
https://bakasoniji.com/2013/05/19/coso.html/feed 0