Javascript首先显示用户选择的内容 [英] Javascript first to display the contents of what the user selects

查看:80
本文介绍了Javascript首先显示用户选择的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里有一个内容列表,用户可以从中选择要显示的内容,但在这些内容列表下面,内容实际上是按内容名称的字母顺序显示,以显示所有内容即使用户从列表中选择了一些内容,直到上面的所有内容都没有显示,下面的内容也需要时间。我想首先显示用户选择的内容,然后显示剩下的内容。

例如:蚂蚁猫狗老虎

蚂蚁







cat















tiger







如果用户选择要首先显示的狗的内容,然后其余的

即蚂蚁猫虎必须展示。有人可以帮我吗


谢谢

Here is the situation there is a list of contents from which the user can select the required contents to be displayed, but below these list of contents, the contents are actually displayed in the alphabetical order of the contents name ,to display all of the contents below it takes time even if the user selects some content from the list that will not be displayed until all the contents above is not displayed. I wanted to first display the contents of what the user selects and then display the rest of the contents.
Eg: ant cat dog tiger
ant
.
.
.
cat
.
.
.
dog
.
.
.
tiger
.
.
.
here if user selects the contents of dog to be displayed first and then the rest
ie ant cat tiger has to be displayed. Can somebody help me do it

Thanks

推荐答案

你能发布到目前为止的代码,所以我们有更好的了解问题是什么以及如何解决它。
Can you post the code that you have so far, so we have a better idea what the problem is and how to solve it.


我不能透露代码你能不能给我一个如何理解它的想法?
I cant reveal the code can you just give me an idea of how to do it??


是否因为某些法律要求?


我要求代码的一个原因是我不确定究竟是什么问题。你能用一两个代码片段更详细地解释一下。
Is it because of some legal requirement?

One reason why I asked for the code is that I''m not sure what the exact problem is. Can you explain in more detail with one or two code snippets.


这篇关于Javascript首先显示用户选择的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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