-1
의 변수 I는참조 스크립트 로컬 범위
var instances = $.fn.dataTable.tables({api: true});
var tables = $($(this).attr('href')).find('table').filter(function (index) {
if ($(this).attr('id')) return this.id;
});
_.map(tables, function (table, index) {
if (_.find(instances.context, {'sTableId': table.id})) {
if (window[table.id].dependsOn) {
문제를 다음 않는 것이다.
물론, if (table.id.dependsOn) {
은 작동하지 않습니다. 이
_.map(tables, function (table, index) {
if (_.find(instances.context, {'sTableId': table})) {
을 할 필요가 같은
무엇이 당신의 질문입니다. –
나는 table.id에 이름이있는 로컬 변수를 참조하기 위해 wnat을 사용한다. –
윈도우 대신 [table.id] local [table.id]을 사용할 수있다. –