- Qt
public void Hyper::妹子撒嬌()
{
this.哄((Yp)QObject::sender());
}
QObject::connect(yp, SIGNAL(撒嬌()),hyper,SLOT(妹子撒嬌());
- C#
yp.撒嬌 += delegate{ hyper.哄(yp);};
- Java
hyper.get撒嬌Manager().register(new 撒嬌Handler(){
@Override
public void on撒嬌(撒嬌Event event){
try{
if(event.source != yp)throw new
Wrong妹子Exception();
hyper.哄(event.source);
}catch(Wrong妹子Exception e){
try{
hyper.keepCalm();
}catch(CantKeepCalmException e)
{
hyper.call(yp);
}
}
}
});
- html
<script type="text/javascript">
function 求哄(妹子,漢子)
{
var yp = document.getElementById(妹子)
var hyper = document.getElementById(漢子)
hyper.哄(yp);
}
</script>
<a id = "yp" type = "妹子" on撒嬌 = "求哄('yp','hyper')"/>
<a id = "hyper" type = "漢子"/>
- jQuery
$('#yp').撒嬌(function(){
$('#hyper').哄($('#yp'));
});
- Lua
WithHyper = {
__撒嬌 = function()
hyper.哄(self)
end,
}
setmetatable(yp, WithHyper)
- c/c++
void (*漢子::on撒嬌)(撒嬌Source*);
yp->on撒嬌 = &(Hyper::哄);
yp->on撒嬌(yp);
其實我不懂c++
其實我家妹子撒嬌都不需要費心思想怎么哄的
最好的代碼,無非是
/me smile
/me hug yp
>/////<
快點贊!
快贊死窩啊

噗