答案 0 :(得分:1)
我明白了。这是代码
<tr>
<td>store</td>
<td>Production</td>
<td>ProductionOrBeta</td>
</tr>
<tr>
<td>storeEval</td>
<td>((storedVars['ProductionOrBeta'] == "Beta")?'http://betasite.com/':'http://productionsite.com/')</td>
<td>targetWebsite</td>
</tr>
<tr>
<td>open</td>
<td>${targetWebsite}</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>((storedVars['ProductionOrBeta']=="Beta")?'betalogin':'productionlogin')</td>
<td>loginName</td>
</tr>
<tr>
<td>storeEval</td>
<td>((storedVars['ProductionOrBeta']=="Beta")?'betapw':'productionpw')</td>
<td>loginPassword</td>
</tr>
区别在于“storedVars ['ProductionOrBeta']”一直通过和双等于(“==”)而不是单个等于(“=”)。
谢谢,
Jesse Smothermon