我正在使用 jquerymobile 1.3 -> 列切换表小部件。 http://view.jquerymobile.com/1.3.0/docs/widgets/table-column-toggle/
我正在动态创建行和列。当我这样做时,列切换模式不起作用。如果我对数据进行硬编码,它就会起作用。可能出了什么问题?
我也按照他们的文档中的建议进行刷新。
$( "#myTable" ).table-columntoggle( "refresh" );
我的 Javascript 代码很简单。
var tBody = document.getElementById('idTBody');
var tr = document.createElement('TR');
var td = document.createElement('TD');
td.innerHTML = "Some string";
tr.appendChild(td);
tBody.appendChild(tr);
idTBody 是分配给 Tbody 标记的 ID。
最佳答案
看来这是jquerymobile 1.3.0 中的一个已知错误,将在1.3.1 中修复。 这是链接 --> https://github.com/jquery/jquery-mobile/issues/5640这是跟踪器链接 --> https://github.com/jquery/jquery-mobile/issues/5570
关于javascript - 动态 jquery mobile 列切换未刷新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15105504/