交易須知:差價合約(CFD)是屬於複雜的投資產品,因杠杆而存在快速虧損的高度風險。交易前您應衡量是否了解差價合約以及是否能夠承擔發生虧損的高風險。
`).join('')
})
})
// 示例:Fetch API提交
document.querySelector('form').addEventListener('submit', async (e) => {
e.preventDefault();
try {
console.log('提交成功:', e.target);
alert("系統維護中");
//return;
const response = await fetch('/api/submit', {
method: 'POST',
body: new FormData(e.target)
});
if (!response.ok) throw new Error('提交失敗');
const result = await response.json();
console.log('提交成功:', result);
} catch (error) {
console.error('錯誤:', error);
}
});