我正在Symofny项目中与https://github.com/mateuszmarkowski/jQuery-Seat-Charts合作。.我定义了座位号..
$(document).ready(function() {
var firstSeatLabel = 1;
var rowRange = 'abcdefghijklmnopqrstuvwxyz'.split('');
var sc = $('#seat-map').seatCharts({
map: [
'eeeee_eeeee',
'eeeee_eeeee',
'eeeee_eeeee',
'eeeee_eeeee',
'eeeee_eeeee',
'eeeee_eeeee',
'eeeee_eeeee',
'eeeee_eeeee',
'eeeee_eeeee',
],
naming : {
top : false,
getLabel : function (character, row, column) {
return rowRange[row - 1].toUpperCase() + column;
},
}
});
});
看起来像这样
现在,我需要将每个字段分别添加到数据库行中。我使用了Symfony逻辑,但是无法使用JavaScript。有什么建议吗?