Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么CVS扩展javascript调用?_Javascript_Html_Cvs - Fatal编程技术网

为什么CVS扩展javascript调用?

为什么CVS扩展javascript调用?,javascript,html,cvs,Javascript,Html,Cvs,为什么CVS要在下面扩展SetDropdownList调用 从 SetDropdownList('BillPay','BillingState','$State$') 到 SetDropdownList('BillPay','BillingState','$State:Exp$') 在下面的javascript中 我应该将html文件转换为二进制文件吗 我尝试了以下步骤来调查此问题。我将html文件(javascript函数驻留在其中)复制到一个安全的地方;删除文件;输入CVS delete命令

为什么CVS要在下面扩展SetDropdownList调用

SetDropdownList('BillPay','BillingState','$State$')

SetDropdownList('BillPay','BillingState','$State:Exp$')

在下面的javascript中

我应该将html文件转换为二进制文件吗

我尝试了以下步骤来调查此问题。我将html文件(javascript函数驻留在其中)复制到一个安全的地方;删除文件;输入CVS delete命令以删除CVS元素;然后使用add and commit从保存的副本重新创建CVS元素

尽管如此,SetDropdownList仍如上图所示进行了扩展

function EnterPage()
{
var ElemID;

// Set the payment type and credit card radio buttons to their correct initial
// state (ACH payment, credit card choice 0).
SetRadioButton('BillPay', 'PaymentTypeID', 1);
SetRadioButton('BillPay', 'CCTypeID', 0);

// Make the credit card fields invisible.  ACH is the default.
if (document.all && !document.getElementById) ElemID = document.all['CCTable'];
else ElemID = document.getElementById('CCTable');

ElemID.style.display = 'none';

// Fill in the various fields of the form that we know about.  Note that we use
// double quotes, in case there are any apostrophes in the names.
document.forms['BillPay'].elements['ACHNameOnAccount'].value = "$FullName$";
document.forms['BillPay'].elements['CCNameOnCard'].value = "$FullName$";
document.forms['BillPay'].elements['BillingAddress1'].value = "$Address1$";
document.forms['BillPay'].elements['BillingAddress2'].value = "$Address2$";
document.forms['BillPay'].elements['BillingCity'].value = "$City$";
SetDropdownList('BillPay', 'BillingState', '$State$');
document.forms['BillPay'].elements['BillingZipcode'].value = "$Zipcode$";
document.forms['BillPay'].elements['Location'].value = "$Location$";
document.forms['BillPay'].elements['AcctType'].value = "$AcctType$";
document.forms['BillPay'].elements['BillYear'].value = "$BillYear$";
document.forms['BillPay'].elements['AcctNum'].value = "$AcctNum$";
document.forms['BillPay'].elements['BillAmount'].value = "$AmountPaid$";
document.forms['BillPay'].elements['ScholarAmount'].value = "$ScholarAmt$";
document.forms['BillPay'].elements['AmountPaid'].value = "$TotalAmt$";

// Make the scholarship donation visible, if there is one.
if (document.all && !document.getElementById)
  ElemID = document.all['ScholarDonat'];
else ElemID = document.getElementById('ScholarDonat');

if ('$ScholarAmt$' != '0.00') ElemID.style.visibility = 'visible';

// The page is set up.
return;
}

$State
是CVS关键字,请参阅和

“默认情况下,除非您告诉CVS停止,否则CVS将执行关键字扩展。当您将文件添加到项目中时,可以使用-k选项永久禁止文件的关键字扩展”,请参阅

它给出的禁止关键字扩展的命令行示例如下:

$ cvs add -ko chapter-9.sgml

我不知道如果您使用的是OrtoiseCV,我想他们有一个类似的选项来控制关键字扩展

CVS是一个源代码控制系统。@DanielA.White是的,我想我们可以在这里问编程工具问题。是的,但这和这个问题有什么关系?你说“CVS元素”,但我在你的javascript中看不到。@DanielA.White我重新编辑了这个问题。@credenson CVS如果发现CVS关键字,会更改你的文件;请参阅我的答案和其中包含的链接。您在哪里可以找到rcs_kflags的描述?我想您指的是提供的第一个链接中的“关键字扩展模式”?不是一个真正的CVS专家,只是记得5-10年前看到“$State”,当时我还在使用它和/或RCS,并且刚开始在谷歌上搜索“CVS$State”。很高兴我的回答很有帮助。