问题一:

Get和Post提交方式, 各种方法试尽了,始终不成功,结果是URL问题,http://xxxx/xxxxx实在没有办法只好直接上html:

<html><head>test</head><body><formaction="http://xxxx/xxxxx"method="post"><inputtype=textname='username'/><inputtype="submit"value='submit'/></form></body></html>

终于露出了能看到的原因:

YoucalledthisURLviaPOST,buttheURLdoesn'tendinaslashandyouhaveAPPEND_SLASHset.Djangocan'tredirecttotheslashURLwhilemaintainingPOSTdata.Changeyourformtopointtoxxxx/xxxx/(notethetrailingslash),orsetAPPEND_SLASH=FalseinyourDjangosettings.

就是最后"/"的原因。


总结:在模拟器中不找到原因时要尝试换一种简单明了的方式来模拟重现问题场景。


问题二:

Eclipse 提示:replace "..." with ellipsis character (…, &&;#8230;) ?

提示的意思是:用省略号的字符形式(…, &&;#8230;)?替换省略号"..."(这个省略号是由英文状态下输入的三个圆点)

解决方法:

跳到中文输入法下,按shift+^打出省略号

直接将省略号替换为【…】