- 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
>/////<
快点赞!
快赞死窝啊
噗
网友评论