第14行发生错误.
线程"main"中的异常java.lang.RuntimeException:无法编译的源代码 - 错误的sym类型:
很难找到解决方案.
package example;
public class Num
{
public static void main(String [] args)
{
String s = "42";
try
{
s = s.concat(".5");
double d = Double.parseDouble(s);
s = Double.toString(d);
int x = (int) Math.ceil(Double.valueOf(s).doubleValue()); //Line 14
System.out.println(x);
}
catch (NumberFormatException e)
{
System.out.println("Wrong Number");
}
}
}
Run Code Online (Sandbox Code Playgroud) 我有单独的 json 包含 SVG 路径 ID。有没有办法使用路径 id 获取 SVG 路径“d”属性?或者有没有办法只使用路径 ID 来填充 SVG 路径?
我在管理表单中添加了一个按钮,如下所示。
$fieldset->addField('registered', 'button', array(
'label' => Mage::helper('core')->__('Send e-mail to all registered customers'),
'value' => Mage::helper('core')->__('Button Caption'),
'name' => 'registered',
'onclick' => "setLocation('{$this->getUrl('*/*/registeremail')}')",
));
Run Code Online (Sandbox Code Playgroud)
该字段的功能正常工作,但按钮显示不正确。如下所示。
如何将此按钮显示为普通的magento按钮?
我尝试过
'after_element_html' => '<button type="button" onclick="setLocation('{$this->getUrl('*/*/registeremail')}')">All Registered</button>'
但是onclick调用是错误的。