我有一个从 Wordpress 父级管理员主题运行的 jQuery 函数。它看起来像这样:
jQuery(document).ready(function(){
var DIV_SIZE = [
['1/4','element1-4',1/4,['Column','Gallery','Content','Page']],
['1/3','element1-4',1/4,['Column','Gallery','Content','Page']],
];
}
我需要添加一个附加值:,'blog'
像这样,但从我的子主题中的 functions.php 文件中执行它:
jQuery(document).ready(function(){
var DIV_SIZE = [
['1/4','element1-4',1/4,['Column','Gallery','Content','Page','blog']],
['1/4','element1-4',1/4,['Column','Gallery','Content','Page','blog']],
];
}
如何附加 DIV_SIZE?