2
對不起,如果它是重複的問題。 「_」運算符做了什麼?以太坊合同_的運營商;
此代碼是從復仇合同手冊: https://ethereum.org/token#deploying
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
if (msg.sender != owner) throw;
_;
}
function transferOwnership(address newOwner) onlyOwner {
owner = newOwner;
}
}
你的問題在這個其他網站解決。 https://ethereum.stackexchange.com/questions/5861/are-underscores-in-modifiers-code-or-are-they-just-meant-to-look-cool?newreg=95181540ee304308aa071f6a2b97d87f – Dez