gpt4 book ai didi

javascript - 使用 jquery 进行拼写检查有什么问题吗

转载 作者:行者123 更新时间:2023-11-30 18:50:47 26 4
gpt4 key购买 nike

<script type="text/javascript">
// check the spelling on a textarea
$("#check-textarea").click(function (e) {
e.preventDefault();
$(".loading").show();
$("#text-content")
.spellChecker({
lang: "en",
engine: "google",
suggestBoxPosition: "above"
})
.spellChecker('check', function (result) {

// spell checker has finished checking words
$(".loading").hide();

// if result is true then there are no badly spelt words
if (result) {
alert('There are no incorrectly spelt words.');
}
});
});
</script>

我收到错误消息对象不支持此属性或方法..

我使用了这个链接..

http://code.google.com/p/jquery-spellchecker/source/browse/#svn/trunk/css

最佳答案

看起来您使用的来源不正确。

你应该试试 ==> http://jquery-spellchecker.googlecode.com/svn/trunk/js/jquery.spellchecker.min.js

不是您列出的 CSS ( http://code.google.com/p/jquery-spellchecker/source/browse/#svn/trunk/css )

此外,正如 Jakub 指出的那样,它是拼写检查器中的小写字母 c

查看 example page.

关于javascript - 使用 jquery 进行拼写检查有什么问题吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3973131/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com