I'm trying to modify this code to also give this div item an ID, however I have not found anything on google, and idName does not work.(我正在尝试修改此代码,以便为此div项目提供ID,但是我在google上找不到任何内容,并且idName不起作用。)
I read something about append , however it seems pretty complicated for a task that seems pretty simple, so is there an alternative?(我读了一些关于追加的内容 ,但对于看似非常简单的任务而言似乎相当复杂,那么还有其他选择吗?) Thanks :)(谢谢 :))g=document.createElement('div'); g.className='tclose'; g.v=0;
ask by pufAmuf translate from so