这是我的问题。在KEYUP If Textbox1.Text.Length = 3 Then
Textbox1.Text = Textbox1.Text.Insert(3, "-")
Textbox1.SelectionStart = Textbox1.TextLength
End If
输出是这样的: AAA-
例如,我进错了前3个字母,我想改变它,但我仍然不能删除连字符 AA
我想事件侦听器添加到输入,这里是我的代码 <input ref-search (keyup)="search(search.value)">
和搜索方法是 search(condition: string){
console.log(condition);
}
然后当我输入的东西,浏览器控制台日志 TypeError: self._el_11 is not a function
我用jQuery制作搜索插件。 当用户在搜索项目后按下搜索输入中的回车键时,我需要将页面重定向到所选项目href。 jQuery.expr[':'].contains = function (a, i, m) {
return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
};