Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
如题所示,怎么获取最大值得X,Y编号。 有没有简单的办法,或者现成的动作。
我想到一个方法是拿一个【临时数组】,用字符串读取加载【目标数组】的json字符串,从而先完成复制一个数组出来,然后用数组的排序功能排序这个【临时数组】,记得这个排序默认是升序的,所以最大值就一定是【临时数组】的最后一个元素的值,这样就拿到最大值了,之后拿着最大值回去遍历【目标数组】,就能拿到最大值的xy编号了
论坛里面果然人才多