mxGraph破解说明

破解步骤:

1、先在官网http://www.jgraph.com/mxgraph.html上下载:mxgraph-eval-1_5_1_3.zip;

2、解压后取文件夹:mxgraph/javascript/examples/editors,所有流程绘制工具都在这里了;

3、用记事本打开diagrameditor.html,发现下面的代码
 <script type="text/javascript" src="http://www.jgraph.com/demo/mxgraph/src/js/mxclient.php?version=1.5.1.3&key=hnaDe6WohnmhlyI"></script>
 破解的重点是拿到mxclient.php解析后的js文件;
 
4、IE8下面浏览http://www.jgraph.com/demo/mxgraph/editors/diagrameditor.html,另存网文件,在文件夹下面发现:mxclient.php文件,用文本编辑器打开,
 取:eval('/166/141/162/40/155/170/103...');中的''部分的字符串,放到下面这段html中:
<html>
<head>
 <title>mxDraw Example</title> 
</head>
<body>
<div id='content'></div>
</body>
 <script type="text/javascript">
  var a = '/166/141/162/40/155/170/103...';
  
  document.getElementById('content').innerText = a;
 </script>
</html>
 用IE打开就可以看到mxclient.js真面目了。
 用同样的办法拿到firefox下面的mxclient.js文件;
 
5、找到mxclient.js文件中的这句代码
 if ((eval('/156/145/167/40/104/141/164/145/50/51/56/147/145/164/124/151/155/145/50/51') / 1000) - 1270532723 &gt; 15778396) { mxGraph = function() { };}
 注释掉。
  
6、替换diagrameditor.html中的那句:....js/mxclient.php?,改为直接加载....js/mxclient.js,就可以了;

补充说明:
注释掉 editors/config/diagrameditor.xml 中的<include name="/Config.ashx"/>这行,否则在tomcat下执行会有错误;
修改   diagrameditor.html中的 mxBasePath = '../../src'; 为 mxBasePath = 'src'; 把mxgraph/javascript/src目录复制到mxgraph/javascript/examples/editors中

 

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值