我想从自动完成结果中实时显示结果!所以我在public void DrawLineInt(Bitmap bmp)
{
Pen blackPen = new Pen(Color.Black, 3);
int x1 = 100;
int y1 = 100;
int x2 = 500;
int y2 = 100;
// Draw line to screen.
using(var graphics = Graphics.FromImage(bmp))
{
graphics.DrawLine(blackPen, x1, y1, x2, y2);
}
}
& response
用于在表格中显示实时结果。所以我想从列表下的select
中删除(隐藏)项目!我甚至不能用css隐藏
.ui-menu,.ui-autocomplete {display:none;}
是否有删除自动填充列表项的选项(不删除源数据)?
#autocomplete
$( "#autocomplete" ).autocomplete({
source: [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ]
,
select:function(event,ui) {
Display([ui.item]);
},
response:function(event,ui) {
Display(ui.content);
}
});
function Display(d) {
var result = "";
for(var i in d) {
result += "<tr><td>"+i+"</td><td>"+d[i].value+"</td></tr>";
}
$("#result tbody").html(result);
}
table {
table-layout:fixed;
border-collapse:collapse;
}
th,td {
width:30px;
height:30px;
border : 1px solid gray;
}