简单问题处理(200)

  • 主题发起人 主题发起人 leddd
  • 开始时间 开始时间
L

leddd

Unregistered / Unconfirmed
GUEST, unregistred user!
我在编写一个从网页读数据的程序是遇到一点问题,越想越钻牛角尖了,请高手指指路。网页代码如下: ItemKindCalculateFlag[vSuffix].value = 'Y'; ItemKindNo [vSuffix].value = '1'; KindCode [vSuffix].value = 'A'; KindName [vSuffix].value = '机动车'; UnitAmount [vSuffix].value = '0.00'; Quantity [vSuffix].value = '0'; if(KindCode [vSuffix].value=="A") { Deductible [vSuffix].value = '0.0'; DeductibleRate [vSuffix].value = '1.0'; } else { Deductible [vSuffix].value = "0"; DeductibleRate [vSuffix].value = "0"; } spanValue[vSuffix].style.display = ""; Value[vSuffix].value = '0.0'; spanriskLevel[vSuffix].style.display = ""; riskLevel[vSuffix].value = '标志'; Amount [vSuffix].value = '237800.00'; Rate [vSuffix].value = '1.35'; BasePremium[vSuffix].value = '566.00'; Discount [vSuffix].value = '0.8071'; AdjustRate [vSuffix].value = '1.0'; BenchMarkPremium[vSuffix].value = '3776.30'; Premium [vSuffix].value = '3047.85'; ItemKindCalculateFlag[vSuffix].value = 'Y'; ItemKindNo [vSuffix].value = '2'; KindCode [vSuffix].value = 'B'; KindName [vSuffix].value = '摩托车'; UnitAmount [vSuffix].value = '0.00'; Quantity [vSuffix].value = '0'; if(KindCode [vSuffix].value=="A") { Deductible [vSuffix].value = '0.0'; DeductibleRate [vSuffix].value = '0.0'; } else { Deductible [vSuffix].value = "0"; DeductibleRate [vSuffix].value = "0"; } spanriskLevel[vSuffix].style.display = ""; riskLevel[vSuffix].value = '标志'; Amount [vSuffix].value = '50000.00'; Rate [vSuffix].value = '0.0'; BasePremium[vSuffix].value = '0.00'; Discount [vSuffix].value = '0.8071'; AdjustRate [vSuffix].value = '1.0'; BenchMarkPremium[vSuffix].value = '1631.00'; Premium [vSuffix].value = '1316.38';现要求将网页中变量值取出到指定的输入框中如:车辆类型:edit1.text:='机动车';购置价:edit2.text:='237800.00';...............................车辆类型:edit10.text:='摩托车';购置价:edit11.text:='50000.00';...............................不知该如何处理,请求帮助,谢谢!
 
两种办法,一种是取得浏览器对象的Scripts从中取,一种是用正则表达式分析,
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
747
import
I
I
回复
0
查看
811
import
I
后退
顶部