[JS] Table 轉 Object 練習 part2
[JS] Table 轉 Object 練習 part2
前情提要? 上一篇實作方法利用了三個迴圈,取得標題,將標題的資料利用索引(index) 抓取表格的內容,
程式碼如下:
let headData = Array.from(document.querySelectorAll('thead > tr > th')).map(n=>n.innerText)
console.log('headData', headData )
let tableObject = []
for(let trNode of document.querySelectorAll('tbody > tr') ){
let data = {};
Array.from(trNode.querySelectorAll('td')).forEach((n , index)=>{
data[ headData[index] ] =…
View On WordPress
0 notes
It’s hot enough out here to fry an egg 🌞 sunny side up please. . . . .#colinadrianglass #sunnysideup#egg#fusedglass #tableobject#homedecor (at Lake Pleasant Regional Park) https://www.instagram.com/p/CgfaM3ovJ0u/?igshid=NGJjMDIxMWI=
0 notes
PORTUGUESE FAIENCE AND CORK - Dedal
➡ see here: https://joom.ag/IDJI/p46
Flua were born to serve drinks, hot or cold, but the truth is that it also looks beautiful with bouquets of flowers! Available in two sizes, it gives a natural touch to any home.
Made of earthenware with a cork lid, it promises to elegantly store any drink or flowers. You can choose the best size for you, but together it looks really good!
0 notes
Anodized aluminium . Different anodized aluminium colours for the next industrial design project. An object for dining table even for house or restaurant... Stay tuned.. . . . #anodizedaluminum #italiandesign #colours #silvercolour #champagnecolour #greycolour #darkcolour #industrialdesign #tableobjects #prototyping #processing #designchoices #materialslover #sustainability #recycle #designprocess #developingoptions #object #objectdesign #samples #designerjob (presso Seoul, Korea) https://www.instagram.com/p/B8v8h5YHqkJ/?igshid=1hf9tu763dcl
0 notes
Ceramic piece ready! *-* #ceramic #cup #object #product #face #vision #corunum #tableobject #desserts #cocktailcup #vase #multiuse #green #glazed #firstglazing #happy #ceramics #work
0 notes
Once upon a time in Alsace,France, there was a walnut tree with a special nut, hand chosen to become the mold of the nutcracker Nukso (see here: https://joom.ag/wRHe/p64).
Hand-picked by the designer, this walnut in brass challenges you to crack nuts with your hands.
0 notes