SOURCE



var str = '<div class="jfgrid-datavisual-quick-menu" id="jfgrid-datavisual-quick-menu" style="height: 454px;"> <div id="jfgrid-datavisual-chart-menu-line" data-type="line" class="jfgrid-datavisual-quick-menu-active"> <i class="fa fa-line-chart" aria-hidden="true"></i> <span>折线图</span> </div> <div id="jfgrid-datavisual-chart-menu-area" data-type="area"> <i class="fa fa-area-chart" aria-hidden="true"></i> <span>面积图</span> </div> <div id="jfgrid-datavisual-chart-menu-column" data-type="column"> <i class="fa fa-bar-chart" aria-hidden="true"></i> <span>柱状图</span> </div> <div id="jfgrid-datavisual-chart-menu-bar" data-type="bar"> <i class="fa fa-tasks" aria-hidden="true"></i> <span>条形图</span> </div> <div id="jfgrid-datavisual-chart-menu-pie" data-type="pie"> <i class="fa fa-pie-chart" aria-hidden="true"></i> <span>饼 图</span> </div> <div id="jfgrid-datavisual-chart-menu-scatter" data-type="scatter"> <i class="fa fa-circle-o" aria-hidden="true"></i> <span>散点图</span> </div> <!--<div id="jfgrid-datavisual-chart-menu-bubble" data-type="bubble"> <i class="fa fa-circle-o" aria-hidden="true"></i> <span>气泡图</span> </div>--> <div id="jfgrid-datavisual-chart-menu-radar" data-type="radar"> <i class="fa fa-wifi" aria-hidden="true"></i> <span>雷达图</span> </div> <div id="jfgrid-datavisual-chart-menu-funnel" data-type="funnel"> <i class="fa fa-hourglass-end" aria-hidden="true"></i> <span>漏 斗</span> </div> <div id="jfgrid-datavisual-chart-menu-gauge" data-type="gauge"> <i class="fa fa-tachometer" aria-hidden="true"></i> <span>仪表盘</span> </div> <div id="jfgrid-datavisual-chart-menu-map" data-type="map"> <i class="fa fa-globe" aria-hidden="true"></i> <span>地 图</span> </div> <div id="jfgrid-datavisual-chart-menu-kline" data-type="kline"> <i class="fa fa-arrow-up" aria-hidden="true"></i> <span>K线图</span> </div> <div id="jfgrid-datavisual-chart-menu-box" data-type="box"> <i class="fa fa-i-cursor" aria-hidden="true"></i> <span>箱线图</span> </div> <!--<div id="jfgrid-datavisual-chart-menu-links" data-type="links"> <i class="fa fa-share-alt" aria-hidden="true"></i> <span>关系图</span> </div>--> <div id="jfgrid-datavisual-chart-menu-treepic" data-type="treepic"> <i class="fa fa-sitemap" aria-hidden="true"></i> <span>关系图</span> </div> <div id="jfgrid-datavisual-chart-menu-tree" data-type="tree"> <i class="fa fa-suitcase" aria-hidden="true"></i> <span>树图</span> </div> <div id="jfgrid-datavisual-chart-menu-parallel" data-type="parallel"> <i class="fa fa-tasks" aria-hidden="true"></i> <span>平行坐标</span> </div> <div id="jfgrid-datavisual-chart-menu-wordCloud" data-type="wordCloud"><i class="fa fa-wikipedia-w" aria-hidden="true"></i> <span>词云图</span> </div> <div id="jfgrid-datavisual-chart-menu-calendar" data-type="calendar"> <i class="fa fa-calendar" aria-hidden="true"></i> <span>日历</span></div> <div id="jfgrid-datavisual-chart-menu-heatmap" data-type="heatmap"><i class="fa fa-thermometer-half" aria-hidden="true"></i> <span>热力图</span></div> <div id="jfgrid-datavisual-chart-menu-pictorialBar" data-type="pictorialBar"><i class="fa fa-female" aria-hidden="true"></i> <span>象形柱状图</span></div> <div id="jfgrid-datavisual-chart-menu-pictorialBar" data-type="pictorialBar"><i class="fa fa-female" aria-hidden="true"></i> <span>象形柱状图</span></div> </div>';
var reg = /[\u4e00-\u9fa5]/g;
var res = str.match(reg);
document.write(res.join(""));
console 命令行工具 X clear

                    
>
console