【问题标题】:How to use automatic intellisense in normal TextArea in a web application?如何在 Web 应用程序的普通 TextArea 中使用自动智能感知?
【发布时间】:2014-04-29 08:09:37
【问题描述】:

我正在创建一个在线编译器 Web 应用程序。它已完成并且运行正常。现在我想改进我的应用程序。我正在尝试在程序正在输入的 TextArea 中显示智能感知。例如,如果我输入 Sys,它应该以 System 完成单词。

到目前为止,我尝试了以下 URL:

谁能帮帮我。

var demo_input = document.getElementById('demo_input');

var type_this = "see, I'm typing lots and lots of things magically!";
var index = 0;

window.next_letter = function() {
    if (index <= type_this.length) {
        demo_input.value = type_this.substr(0, index++);
        setTimeout("next_letter()", 50);
    }
}

next_letter();

Automatic Filling

【问题讨论】:

    标签: javascript jquery web-applications intellisense


    【解决方案1】:

    没用

    setTimeout("next_letter()", 50);
    

    请尝试更改

    setTimeout(function() {
             next_letter(); 
        }, 50);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-06-19
      • 1970-01-01
      • 1970-01-01
      • 2020-11-27
      • 2023-03-08
      • 2013-09-16
      • 2010-09-28
      相关资源
      最近更新 更多