The options are randomly changed each time the selection question is displayed. The scenario is as follows:
这里是试题的标题(内容:线段AB和线段AC相交于D点.......则AB和AC的长度可能为?)选项A:AB大于AC(默认正确答案)选项B:AB小于AC选项C:长度相等选项D:不确定用户评论1:答案A有问题,因为AB和AC....交点D...,所以应该选B。用户评论2: 应该选A,B不对。用户评论3: 都不对,D。
The above is the case that the option does not change, how to let the user see the following effect when the selected item is randomly changed?
Change 1:
这里是试题的标题(内容:线段AB和线段AC相交于D点.......则AB和AC的长度可能为?)选项A:长度相等选项B:AB大于AC(默认正确答案)选项C:不确定选项D:AB小于AC用户评论1:答案B有问题,因为AB和AC....交点D...,所以应该选D。用户评论2: 应该选B,D不对。用户评论3: 都不对,C。用户评论4: CD错,B也错,A对。
Change 2:
这里是试题的标题(内容:线段AB和线段AC相交于D点.......则AB和AC的长度可能为?)选项A:不确定选项B:AB小于AC选项C:AB大于AC(默认正确答案)选项D:长度相等用户评论1:答案C有问题,因为AB和AC....交点D...,所以应该选B。用户评论2: 应该选C,B不对。用户评论3: 都不对,A。用户评论4: AB错,C也错,D对。
This question thought for a long time, also tried to write some algorithms, but the processing effect is not ideal, special to help!
Actually the problem of the polygon can be simplified as to how to extract the Comment Content option section
The answer C has a problem because AB and ac .... Intersection d ..., so you should choose B.
Should choose C,B is wrong.
All right,A.
AB is wrong,C is wrong,D pair.
Or is there any other way around?
Reply content:
The options are randomly changed each time the selection question is displayed. The scenario is as follows:
这里是试题的标题(内容:线段AB和线段AC相交于D点.......则AB和AC的长度可能为?)选项A:AB大于AC(默认正确答案)选项B:AB小于AC选项C:长度相等选项D:不确定用户评论1:答案A有问题,因为AB和AC....交点D...,所以应该选B。用户评论2: 应该选A,B不对。用户评论3: 都不对,D。
The above is the case that the option does not change, how to let the user see the following effect when the selected item is randomly changed?
Change 1:
这里是试题的标题(内容:线段AB和线段AC相交于D点.......则AB和AC的长度可能为?)选项A:长度相等选项B:AB大于AC(默认正确答案)选项C:不确定选项D:AB小于AC用户评论1:答案B有问题,因为AB和AC....交点D...,所以应该选D。用户评论2: 应该选B,D不对。用户评论3: 都不对,C。用户评论4: CD错,B也错,A对。
Change 2:
这里是试题的标题(内容:线段AB和线段AC相交于D点.......则AB和AC的长度可能为?)选项A:不确定选项B:AB小于AC选项C:AB大于AC(默认正确答案)选项D:长度相等用户评论1:答案C有问题,因为AB和AC....交点D...,所以应该选B。用户评论2: 应该选C,B不对。用户评论3: 都不对,A。用户评论4: AB错,C也错,D对。
This question thought for a long time, also tried to write some algorithms, but the processing effect is not ideal, special to help!
Actually the problem of the polygon can be simplified as to how to extract the Comment Content option section
The answer C has a problem because AB and ac .... Intersection d ..., so you should choose B.
Should choose C,B is wrong.
All right,A.
AB is wrong,C is wrong,D pair.
Or is there any other way around?
To analyze the problem, the key point is to point to the option in the comment that corresponds to the currently displayed option. If you use ABCD to extract the comments, the experience will be poor, such as the USA will become USB, of course, you can take this case out of special processing, but there is always a case to deal with.
Since it's just for the comments and options to correspond, it's perfectly possible to provide a workaround, such as the one mentioned in @a,@b, and note that the essence of this scheme is to identify the options that the user wants to point out at the input, so you need to do some assistance when the user enters it. For example, in the internal exchange of options such as the ID of the re-submission, or return to the above "extract", the same will be misjudged. (me@apple.com, me@dpple.com, etc...) )
Of course, this way also has the disadvantage, is not too in line with the user cognition, namely the user does not necessarily recognize, even the user does not know to refer to the option also need to adopt such "Metamorphosis" way, therefore also needs to carry on the interaction to have some guidance, informs the user to refer the option correctly the method. You can even make some tough judgments, such as when ABCD occurs in comments, "Do you mention the options in the topic, and if so, you need XXXX".
In addition, there is a more extreme approach, because the confusion from the ABCD, we can directly remove this confusion, because we are on the Web page, we can directly interact with the control, do not need to use the code as a paper answer to refer to the answers, so you can fully use this form:
Do you think I'm handsome?
- ⊙ the handsome exploded
- 0 not handsome.
Then the comment will become
This topic is so shameless ah, incredibly only "handsome exploded" and "not handsome", I want to say "a little handsome" how to do?
Look, there is no trouble at all.
The last sentence, pure loading force, please ignore: Some problems do not have to rely on the program to solve, a lot of the power of design, often can do more with less.
Workaround, you can set a symbol for the answer marker. such as micro-bo circle people. @xxxxxxx can set a similar symbol, such as #c for the answer C
$arr = array( 'A' => '不确定', 'B' => 'AB小于AC', 'C' => 'AB大于AC(默认正确答案)', 'D' => '长度相等', );uasort($arr, function(){return mt_rand(-1,1);} );$arr_keys = array_keys($arr);$arr_new_keys = array_flip($arr_keys);array_walk($arr_new_keys, function(&$value){ $value = chr($value+65); });$chr_a = 'A';foreach ($arr as $key=>$value){
";}extract($arr_new_keys);echo <<
用户评论2: 应该选 $C,$B 不对。
用户评论3: 都不对,$A 。
用户评论4: $A $B 错,$C 也错,$D 对。
EOT;
The point of the question, as mentioned above, is to establish a connection between the comment and the answer, and then it is rather unreliable to judge whether the content of the comment contains a corresponding character or Word without a special agreement. About what is said upstairs by adding such as @XX
the form of comments and options to connect, the total feeling that the use of strange.
Personal insight, since the need to be able to let users clear the area of each option and each option corresponding to the comments, rather than convert a way of thinking, let users in the comments, directly choose to comment on an option, it is easy to implement, you can give each option after adding a hover to trigger the comment button, Click below to expand a comment window for the user to enter.
In the comment display, you can take advantage of the unused options themselves, let the user click on the option, directly below to pull out a series of comments on this option, its specific implementation form can refer to the practice of SF 显示评论
, click again to let the comments fold.
The specific implementation form of the above answer is only for the sake of a clearer description of the idea, for reference only, as to how to make the answer random, a lot of methods, do not repeat.