使用javascript填充sqldatabase字段以下拉列表 [英] populating sqldatabase fields to dropdown using javascript

查看:72
本文介绍了使用javascript填充sqldatabase字段以下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个具有超过20个下拉菜单的应用程序,并在下拉列表中填充了数据库字段...问题是当我想进入具有这些下拉菜单的页面时..页面启动花费了很多时间...

任何人都可以建议我如何使页面快速显示,即使数据库字段具有许多下拉菜单

我在想什么是使用javascript填充数据库字段..以便性能可能会提高..您如何看待..

如果我的想法似乎是正确的..谁能告诉我代码与javascript一起使用dropdown ...


I have an application having more than 20 dropdowns and i m populating database fields to dropdownlist...the matter is when i want to enter the page having these dropdowns..it is taking so much time for page to start...

can any one suggest me how to make page to display very fast eventhough having many dropdowns with database fields

what m i thinking is to use javascript to populate database fields..so that performance may increase..what do you people think..

if my thinking seems to be right..can anyone tell me the code to use dropdown with javascript...

推荐答案

只是因为您使用JavaScript并不意味着您的表现将会提高.首先要考虑的是重新设计您的应用程序.您是否真的需要初始页上的许多下拉菜单?可以缓存数据吗?确定性能问题在哪里.数据库查询需要更长的时间还是在渲染上花费了时间?
Just because you use JavaScript doesn''t mean your performance will increase. The first thing to consider is redesigning your application. Do you really need that many dropdowns on the initial page? Can the data be cached? Determine where the performance issues are. Do the database queries take longer or is the time spend in rendering?


这篇关于使用javascript填充sqldatabase字段以下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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