在按键事件中将数据保存在数据库中 [英] Saving data in the database on keypress event

查看:80
本文介绍了在按键事件中将数据保存在数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想做这种类型的功能,例如当我按文本​​框中的键(a/b/c ... etc)时,它将不使用任何键(按钮或Enter键)保存在数据库中.我的意思是说,显示键会自动保存在数据库中,而无需使用任何按钮/输入键.

Hi,
I wanna make such type of function, like when I press the key (a/b/c...etc) in the textbox, then it will saved in the database without using any (button or enter key). I mean to say it the displaying keys are automatically saved in the database without using of any button/enter key.

推荐答案

您好,请使用ajax功能并调用JS回调
Hi, Use ajax functionality and call JS call back function on keypress or keyup event of text box.


如果在Windows应用程序上工作,则可以处理控件的按下事件并编写代码以保存数据
If you are working on windows application then you can handle key press event of control and write code to save data


这篇关于在按键事件中将数据保存在数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆