腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
$
class-
>
method
()
或
$
class
::
method
()
、
可能重复: 如在任何性能
或
功能上的差异。
浏览 3
提问于2012-08-06
得票数 3
回答已采纳
2
回答
如何通过指向变量来调用方法
我会调用类中的一个方法,这样做: $
class
= new
Class
();} 但它告诉我: 有人能解决这个问题吗?
浏览 2
提问于2013-06-09
得票数 0
1
回答
使用
Class
::MOP::
Class
创建动态数据模型不起作用
、
、
、
我在JSON文件中有Schema定义,我希望读取这些定义并使用
Class
::MOP::
Class
动态生成类。例如,有JSON文件A.json、B.json、C.json,它们被转换为A、B、C类。generate_classes_from_schema { foreach my $cname('A', 'B', 'C') { my $
class
_def=
Class
::MOP::
Class
浏览 0
提问于2012-06-27
得票数 1
1
回答
PHP动态方法调用inquery
、
、
php public function do_me() { } $this->$var(); } $do_
method
= "do_me"; // thisvariable is usually
浏览 1
提问于2011-12-30
得票数 1
1
回答
将可调用的值解析为变量而不调用它
、
、
php * Resolves an non-callable action
class
ActionResolver private $action; public function resolveCallable(array $results) $
class
= $results[0]; if (isset($results[1])) { $
method</em
浏览 3
提问于2016-06-15
得票数 1
回答已采纳
4
回答
如何在没有装满购物车的情况下获得送货方式列表
、
、
是否可以根据以下内容获取可用的发货方法列表我想这可以通过构建我自己的SQL查询来实现,但我想知道是否也可以使用标准的Woo-commerce函数。我已经用函数尝试过了:但这给了我所有的运输方式,而不是过滤国家
或
成本。[2] => instance-settings-modal
浏览 0
提问于2017-03-13
得票数 0
1
回答
Perl::MethodAttributes获取方法属性
、
method
_attribute_list; my $attribute_list = $
class-
>meta->get_
method
('moosey')->associated_metaclass()->_
method
_attr
浏览 6
提问于2014-07-13
得票数 1
回答已采纳
3
回答
PHP:直接从字符串返回值(字符串文字)创建新的类对象
、
、
有没有可能通过PHP中的函数
或
方法返回的字符串创建一个新对象?就像一些我不知道的逃生方法?非工作示例:new "stringliteral"(); new ($
class
= $
class-
>
method
())();
浏览 27
提问于2015-10-23
得票数 2
1
回答
从数据库值“构建”类调用
、
我得到了一个数据库表,其中保存了一个类名、方法和参数:---------------------------$
class-
>$
method
($para); 这有可能吗?
浏览 0
提问于2015-01-05
得票数 0
回答已采纳
3
回答
如何传递对$self->
class-
>方法的引用?
我调用一种方法如下:我希望将对此方法的引用作为参数传递到子例程中。我试过了但我得到了以下错误:对怎么做有什么想法吗?
浏览 0
提问于2014-12-03
得票数 3
回答已采纳
2
回答
JavaScript:
Class
.
method
与
Class
.prototype.
method
?
Class
.
method
= function(){/ * code * /}
Class
.prototype.
method
= function(){/ * code using this.values
浏览 335
提问于2017-12-14
1
回答
Casebox对象字段取决于同一父对象中的另一个字段
、
、
我有一个CaseBox对象,其中一个字段(age)用于依赖另一个字段(birthdate)。正如我理解开发人员文档一样,我应该使age类型为Objects,编写服务器端函数,并在age上设置config属性的source元素以传递函数和字段。{ "requiredFields": "birthdate"
浏览 5
提问于2016-11-02
得票数 0
2
回答
Perl模块加载-防止:您可能忘记加载"Bla"?
、
当您运行perl -e "Bla->new"时,您会得到以下众所周知的错误:(perhaps you
浏览 1
提问于2011-11-07
得票数 5
回答已采纳
2
回答
PHP:链接方法调用
、
、
、
、
;上面的示例获取所选文件的内容,然后返回它们(只是一个示例);
class
callAclass = new AnotherClass( $filename ); } }
class
浏览 0
提问于2012-02-20
得票数 3
回答已采纳
1
回答
如果在无脂框架的ini文件中定义了参数,如何在路由中传递参数?
、
在无脂框架中,我在ini文件中定义路由。像这样:GET|POST /admin/login/@action = controllers\siteadmin\Login->@action
浏览 1
提问于2014-03-20
得票数 3
回答已采纳
3
回答
php:关于如何检查静态方法的问题?
$this->categories = tx_dagoupost_lib::getCategories(); 对于上面的代码:我如何找到被声明为静态
或
非静态的wheather getCategories
浏览 2
提问于2013-08-16
得票数 0
回答已采纳
4
回答
JavaScript:
Class
.
method
vs.
Class
.prototype.
method
、
、
Class
.
method
= function () { /* code */ }
Class
.prototype.
method
= function () { /* code using this.values
浏览 5
提问于2009-10-28
得票数 522
回答已采纳
2
回答
从特征中的重写魔术方法调用父魔术方法
、
我试过的 public function __call($
method
, array $parameters) { }这将导致致命错误:当当前类范围没有父类时,无法访问父类:: 我还在其他一些的基础上尝试了以下内容return call_user_func_array([$this, '__call'], [$
method
, $
浏览 4
提问于2015-05-26
得票数 13
回答已采纳
1
回答
Perl、Inline_Java、Java动态加载对象和方法
、
、
/usr/bin/perl -w
class
FooBar { public;}use
Class
::Sniff;my
浏览 1
提问于2013-02-03
得票数 2
2
回答
使用部分为变量的名称调用php函数
、
我的意思是这样的: $call = $
class-
>{$modulename}Module($params);
浏览 2
提问于2013-09-27
得票数 0
点击加载更多
相关
资讯
Python Magic Method
MakerBot推出METHOD X
Method Swizzling在项目中的实际运用
Hike:A Hybrid Human-Machine Method for Entity Alignment
爬虫遇到abort method will be deleted later!怎么解决
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券