例如把
modifier onlyOwner { require(msg.sender == owner); _; }
修改为:
function onlyOwner() private { require(msg.sender == owner); }
是不是一样的, 哪一个更好?