I want to save an element s ID in a database column. I also need to save the complete DOM hierarchy of that element in the same column. Later i will use this column information to get the value of that element using JavaScript parsing and traversing.
我不清楚为挽救这一信息而使用哪种模式。
e.g:
我正在考虑以下模式:
elementLocation = "iframe[iframeName],iframe[iframeName2],element[elementID]"
elementLocation= "frame[frameName],frame[frameName2],element[elementID]"
elementLocation= "i[iframeName],i[iframeName2],e[elementID]"
elementLocation= "f[iframeName],f[iframeName2],e[elementID]"
请提出一个更好的模式,用以代表任何形式的等级。