Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我是否可能?
基本上,我想搜索一组 json 对象,如果我在其中一个对象中找到特定值,我想从同一个对象中获取其他值。
谢谢
var myArrayObject = $.parseJSON(<string>); for(var i = 0;i <myArrayObject.length; i++){ if (myArrayObject[i] == "<your specified value>") { // your code here } }
我有以下情况
/drug 下的所有内容都是安全的我不希望用户能够查看 /drug 下的任何内容,所以我在我的 spring 安全配置中有这个规则。
<intercept-url pattern="/drug/**" access="hasRole('ROLE_