答案 0 :(得分:0)
如果要在输入字段上插入div的文本
获取div文本
> SELECT SUM(UNIT*ISNULL((CAST(RATIO AS DECIMAL(18,5))/100),1)) AS UNITS
> into x_table from some_table
设置输入
var domele = document.getElementById('divwithtext'),
var text = domele.textContent || domele.innerText;
与如果要从输入中更改te div内容相同