Binding drop-down box and backfill data


开发工具与关键技术:vs与js

作者:戴怡斌 

撰写时间:2019年6月5日

I believe we all know what is drop-down box, do not know is also used, of course, only in mobile computers used especially in the neck above the game packs choose which area when they were used most frequently, so it is still very important.

Most of the drop-down box and search box will, forms combined for investigation.

Multiple drop-down box can also be used in combination to troubleshoot them clearer and more carefully.

Js is not a reference, look at the css code
Here Insert Picture Description
in general are first written and then view the method in reference method in the controller, most are like this,

I'm here too, go write controller method, writing method depends on what you want to query, I'm here to check last names, surnames is, of course, not all have.
Here Insert Picture Description
Some people may have a doubt, how do I use id and text, it is because I write in this way is to view the name, because you do not know in the end how much data you want to query, and you want to query that data, so instead of using id and text ,
Here Insert Picture Description
after completing the query, go to the browser out there to look at the data, there is no check on their own, have just shown in the image on the line
Here Insert Picture Description
do not think this is over, there is data to be queried did not write it, finish the query surname after the name of the query methods to write, because I want to knock the multiple drop-down box is bound to a query data together.
Here Insert Picture Description
This is according to last name first name surname queries, such as queries surnamed Li, a database which will have to check out all surnamed Li, of course, I have this database will query the number of how many surnamed out, temporarily did not write new and deleted.

Then put the marital status but also to check out, the method of inquiry is the same, that is, by name id query marital status information, do not write, a database which has records of marital status. The final renderings to look after both finished.
Here Insert Picture Description
When you click on a name marital status of the case will come out together.

Guess you like

Origin blog.csdn.net/weixin_44561520/article/details/91356366