(编辑:jimmy 日期: 2025/1/19 浏览:2)
1.JAVASCRIPT:
a. 代码:
var a = function(){ } var my_a = new a() my_a.say = function(){ console.log('hello') } my_a.say()
b. 输出:
hello
2. PHP:
<"hello"; }; $say = $a->say; $say();