[ コード例 ]
// 列の値をセット // const loadaveval = info["LOADAVE"].split(",")[0]; const msval = info["MYSQLRSSTOTAL"].toString().replace(",", ""); const javaval = info["JAVARSSTOTAL"].toString().replace(",", ""); const httpdval = info["HTTPDRSSTOTAL"].toString().replace(",", ""); // ID // const gid = "OSINFOWS_" + cntWSMessage; // 行 // const insdata = {id: gid, free: info["FREE"], loadave: loadaveval, javarsstotal: javaval, tomcat_sscnt: info["TOMCAT_SSCNT"], mysqlrsstotal: msval, httpdrsstotal:httpdval, httpdpscount: info["HTTPDPSCOUNT"], disk_used: info["DISK_USED"], tm_add: info["DATENOW_FORMAT"] }; // 最初の行に挿入 // $("#osinfo").jqGrid("addRowData", undefined, insdata, "first");