如何解析JSDoc [英] How to parse JSDoc
本文介绍了如何解析JSDoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 HTML文件.里面有一些JSDoc,像这样:
I have an HTML file. There are some JSDoc inside like this:
/**
* If true, this slider is disabled. A disabled slider cannot be tapped
* or dragged to change the slider value.
*
* @attribute disabled
* @type boolean
* @default false
*/
我需要获取信息并放入一个豆子中
I need to get info and put into a bean
class MyBean {
public String comment;
public String attribute;
public String type;
public String defaultValue;
}
如何解析HTML文件?
How do I parse my HTML file?
推荐答案
有几个JSDoc解析器.看一看学说和
There are several JSDoc parsers out there. Take a look into doctrine and jsdoc-parse for example.
这篇关于如何解析JSDoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文