智能合约字符串拼接
string是数组,solidity不支持动态扩容,只能写个for循环一个个加,此处采用的做法是转成bytes
function stringAdd(string a, string b) returns(string){
bytes memory _a = bytes(a);
bytes memory _b = bytes(b);
bytes memory res = new bytes(_a.length + _b.length);
for(uint i = 0;i < _a.length;