    $.post('/user/delete', {id: row.id}, function (result) {
            if (result.success) {
              $('#dg').datagrid('reload')	// reload the user data
            } else {
              $.messager.show({	// show error message
                title: 'Error', msg: result.errorMsg
              })
            }
          }, 'json')
        }
      })
    }
  }
</script>
</body>
</html>
