javascript
// 设定检测条件
let mobilePhase = {
A: { conc: 0.1, pH: 3.5 },
B: { conc: 0.1, pH: 7.5 }
};
let column = {
length: 150,
id: 4.6,
particleSize: 5
};
let injectionVolume = 10;
let detectionWavelength = 254;
// 设定标准品和样品的浓度
let standardConc = 1e-3;
let sampleConc = 1e-4;
// 运行检测
let HPLC = new HPLC();
HPLC.setMobilePhase(mobilePhase);
HPLC.setColumn(column);
HPLC.setInjectionVolume(injectionVolume);
HPLC.setDetectionWavelength(detectionWavelength);
// 将样品和标准品注入色谱柱
let standardPeak = HPLC.injectStandard(standardConc);
let samplePeak = HPLC.injectSample(sampleConc);
// 计算样品中车前草苷D的含量
let sampleConc = standardPeak / samplePeak * standardConc;
console.log(`样品中车前草苷D的含量为${sampleConc}mg`);