我收到此错误:
参数列表之后的Uncaught SyntaxError:missing)
使用此代码:
titledPane.setOnMouseClicked(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
EventTarget target = event.getTarget();
String clazz = "class com.sun.javafx.scene.control.skin.TitledPaneSkin$TitleRegion";
if(target.getClass().toString().equals(clazz) || // anywhere on title region except title Text
(target instanceof Node && ((Node) target).getParent().getClass().toString().equals(clazz))) // title Text
System.out.println("title was clicked");
}
});
我只需要将链接传递给&#34; go&#34;脚本,所以我可以更改iframe的来源。
答案 0 :(得分:1)
<a href="javascript:void(0)" onclick="go('<?php echo base_url().$link->link_address ?>')"><?php echo strtoupper($link->link_address) ?></a>