我有两个 JavaScript 函数。我想通过另一个函数参数调用一个函数。像这样的代码:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-type' content='text/html; charset=utf-8'>
<title>Javascript Function</title>
<script language="javascript" type="text/javascript">
function fOne()
{
alert("Function One");
}
function fTwo(f_name)
{
f_name; // I want to Call fOne() here
}
</script>
</head>
<body>
<a href="#" onclick="fTwo('fOne')">Call Function</a>
</body>
</html>
这有可能吗?