我有一个函数,用于编辑特定元素的css。元素通过JQuery选择,并存储从2D数组中检索的css值。但是,当我在代码中设置styles时,它从字面上将prop作为"prop",而不是作为它的字符串值。在调试器中,我看到prop确实有一个有效的字符串值,但是在设置styles时没有这样做。我知道这可能是一个语法问题。lies the problem
var styles = { prop :
Garden").hide(); }).trigger('change');
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<label>List of Stores which completed the survey so far&l