<!DOCTYPT html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>ppwjs歡迎您</title> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> </head> <body> <button onclick="測試網格.刪除行(0);">刪除行</button> </body> <script src="/jsVersionControl.js" charset="utf-8" type="text/javascript"></script> <script src="/lib/_sys_ppwjsmain.js" charset="utf-8" type="text/javascript"></script> <script charset="utf-8" type="text/javascript">引入("/index.js",$真)</script> </html>
//程序開始 引入(_sys_bootstrap4_addr + ".js",$真); 引入(_sys_bootstrap4_grid_addr + ".js",$真); var 測試網格=bootstrap4.網格類.建立(2,2); 測試網格.置單元格數據(0,0,"單元格:第1行,第1列"); 測試網格.置單元格樣式(0,0,"background-color:red;"); 測試網格.置單元格列寬配置(0,0,$bootstrap.列_桌面_4); 測試網格.置單元格數據(0,1,"單元格:第1行,第2列"); 測試網格.置單元格樣式(0,1,"background-color:yellow;"); 測試網格.置單元格列寬配置(0,1,$bootstrap.列_桌面_4,$bootstrap.偏移列_桌面_4); 測試網格.置單元格數據(1,0,"單元格:第2行,第1列"); 測試網格.置單元格樣式(1,0,"background-color:green;"); 測試網格.置單元格列寬配置(1,0,$bootstrap.列_桌面_3,$bootstrap.偏移列_桌面_3); 測試網格.置單元格數據(1,1,"單元格:第2行,第2列"); 測試網格.置單元格樣式(1,1,"background-color:blue;"); 測試網格.置單元格列寬配置(1,1,$bootstrap.列_桌面_3,$bootstrap.偏移列_桌面_3); 加到主體(測試網格);