我有以下形成不良的JS:
<script type="text/javascript", id="changeTabScript">
function changeTab(type) {
String.prototype.contains = function(str) {return this.indexOf(str) != -1;};
var lbl = document.getElementById('searchLabel').Value;
if (lbl.contains("Officer"))
{
type = "Officer";
}
if (type == "Officer")
$('#tab-container').easytabs('select', '#tabs1-officer');
else
$('#tab-container').easytabs('select', '#tabs1-company');
};
</script>
我已实施Page.RegisterStartupScript("changeTab", "<script language=JavaScript>changeTab </script");
,
但是,我还没有找到ClientScript.RegisterStartupScript is formed
的线索。 &#34;键&#34;是我不熟悉的东西,我如何使用更新的实现?