Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问能把路径输出为json[1][2][3],这种形式吗? #3

Open
baicaisir opened this issue Jun 7, 2021 · 2 comments
Open

请问能把路径输出为json[1][2][3],这种形式吗? #3

baicaisir opened this issue Jun 7, 2021 · 2 comments

Comments

@baicaisir
Copy link

目前是输出形式为json.1.2.3这种形式,用起来还需要修改一下,请问修改那个位置可以达到这种效果?只需要告诉我具体位置即可,我可以自己尝试修改

@wilon
Copy link
Owner

wilon commented Jun 10, 2021

最新版0.6.2,json[1][2][3]这种形式是数组,json.1.2.3这种形式是对象。

自己修改的话,看下面代码,修改parsePathByElm()方法。

var oPath = _pri.parsePathByElm(eBlock);
$('#showPath').val(oPath);


0.6.2 测试:
image

@baicaisir
Copy link
Author

好的,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants