输入:rgb(13,0,255) 输出:#0d00ff 在线颜色转换工具:http://www.atool.org/colorpicker.php 1 2 3 4 5 6 7 8 9 function colorRGB2Hex(color) { var rgb = color.split(','); var r = parseInt(rgb[0].split('(')[1]); var g = parseInt(rgb[1]); var b = parseInt(…
package { import flash.utils.ByteArray; /** * 输出ByteArray为16进制 * @author Rise */ public class Byte2Hex { public static function Trace(bytes:ByteArray):void { if (bytes == null) { trace("bytes is null"); return; } var length:int = getHexLen(bytes…
// \x65\x76\x61\x6c是否启用\x加密 <script type="text/javascript"> function JavaDe() { var monyer = new Array(); var s = document.getElementById('code').value.split("\\"); for (i = 1; i < s.length; i++) { s[i] = s[i].replace('x', '')…