本文整理汇总了C++中HTMLFormElement::target方法的典型用法代码示例。如果您正苦于以下问题:C++ HTMLFormElement::target方法的具体用法?C++ HTMLFormElement::target怎么用?C++ HTMLFormElement::target使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLFormElement
的用法示例。
在下文中一共展示了HTMLFormElement::target方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsHTMLFormElementTarget
JSValue jsHTMLFormElementTarget(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLFormElement* castedThis = static_cast<JSHTMLFormElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThis->impl());
return jsString(exec, imp->target());
}
示例2: jsHTMLFormElementTarget
JSValue jsHTMLFormElementTarget(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLFormElement* castedThis = static_cast<JSHTMLFormElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLFormElement* imp = static_cast<HTMLFormElement*>(castedThis->impl());
JSValue result = jsString(exec, imp->target());
return result;
}
示例3: getValueProperty
JSValue* JSHTMLFormElement::getValueProperty(ExecState* exec, int token) const
{
switch (token) {
case ElementsAttrNum: {
HTMLFormElement* imp = static_cast<HTMLFormElement*>(impl());
return toJS(exec, WTF::getPtr(imp->elements()));
}
case LengthAttrNum: {
HTMLFormElement* imp = static_cast<HTMLFormElement*>(impl());
return jsNumber(imp->length());
}
case NameAttrNum: {
HTMLFormElement* imp = static_cast<HTMLFormElement*>(impl());
return jsString(imp->name());
}
case AcceptCharsetAttrNum: {
HTMLFormElement* imp = static_cast<HTMLFormElement*>(impl());
return jsString(imp->acceptCharset());
}
case ActionAttrNum: {
HTMLFormElement* imp = static_cast<HTMLFormElement*>(impl());
return jsString(imp->action());
}
case EncodingAttrNum: {
HTMLFormElement* imp = static_cast<HTMLFormElement*>(impl());
return jsString(imp->encoding());
}
case EnctypeAttrNum: {
HTMLFormElement* imp = static_cast<HTMLFormElement*>(impl());
return jsString(imp->enctype());
}
case MethodAttrNum: {
HTMLFormElement* imp = static_cast<HTMLFormElement*>(impl());
return jsString(imp->method());
}
case TargetAttrNum: {
HTMLFormElement* imp = static_cast<HTMLFormElement*>(impl());
return jsString(imp->target());
}
case ConstructorAttrNum:
return getConstructor(exec);
}
return 0;
}