Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
我在使用model.Attribute()时,用toString方法得到的string作为其name属性值时,在前端无法获取到对象,而用“”定义一个字符串就可以,这是什么原因? 代码段: for(Type type : types) { model.addAttribute(type.toString().toLowerCase(),filterByType(ingredients,type)); }