-1
こんにちはdiv.it上のホバーのように表示しているとき、私はHTMLのリストを取得しようとしていますすべての[オブジェクトのオブジェクト] list.iのように見てコードhover divのときにhtmlリストを表示するには?
var type= "x,y,z,a";
var active = type.split(",");
if (active .length == 0)
feature.attributes.ShowExceptionType = "display:none";
else
var item, items = [];
for (var i = 0; i < active .length; i++) {
item = {};
item.active = active [i];
items.push(item);
}
var main = $("<ul>");
var str = "";
for (var i = 0; i < items.length; i++) {
str += "<li>" + items[i].active + "</li>";
}
main.html(str);
$(document.body).append(main);
feature.attributes.HoverContent = $(document.body).append(main);
"description": "{{localize:iplMap:Mac}} : {ESN}<br/><div style='{ShowExceptionCount}' class='cart' id='append'>{{localize:iplMap:ExceptionType}}: ({ExceptionCount})</div>",
feature.attributes.HoverContent = $(document.body).append(main);にコールマウスを入力します。 – Raju
なぜですか?あなたはすでにjQueryを持っています – OliverRadini
はい、私は他のdiv.Onにこれをimplimentする必要があります私は私のコードを追加して表示する必要があります – Raju