小编Pet*_*ell的帖子

如何刷新 ag-grid 数据表?api.refreshCells 遇到问题

我正在尝试创建代码来根据示例代码刷新表。然而,该表并不令人耳目一新。该代码使用“更改数据”按钮更改 JavaScript 变量的值,然后在刷新网格时使用该变量。

不幸的是,我无法刷新网格。我尝试了几种不同的方法,包括 api.refreshCells() 和 api.redrawRows()。有人可以提供有关问题可能是什么的信息吗?

// main.js

let columnsDefinitions = [
    {field: 'a'},
    {field: 'b'},
    {field: 'c'},
    {field: 'd'},
    {field: 'e'},
    {field: 'f'}
];

let data = [
    { 'a' : 1, 'b' : 2, 'c' : 3, 'd' : 4, 'e' : 5, 'f' : 6 },
    { 'a' : 1, 'b' : 2, 'c' : 3, 'd' : 4, 'e' : 5, 'f' : 6 },
    { 'a' : 1, 'b' : 2, 'c' : 3, …
Run Code Online (Sandbox Code Playgroud)

ag-grid

5
推荐指数
1
解决办法
2万
查看次数

错误:Apple Silicon 上的 OpenSSL:libcrypto.dylib,为 macOS-arm64 构建,但尝试链接为 macOS-x86_64 构建的文件

我正在编写一个使用 OpenSSL 的程序。它工作正常,然后我重置/删除了 CMake 缓存。我现在收到以下错误消息。

我使用 Homebrew 安装了 OpenSSL。我将以下内容添加到我的 .bash_profile 中:

导出 PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@1.1/lib/pkgconfig"

我将其添加到位于 /etc/paths 的全局路径文件中:

/opt/homebrew/opt/openssl@1.1/bin

用于调试此问题的其他修复/建议是什么?

错误:

/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --build /Users/stephenjje/Documents/Je/test/cmake-build-debug --target test -- -j 6
[  2%] Linking C executable test
ld: warning: ignoring file /usr/local/Cellar/openssl@1.1/1.1.1k/lib/libcrypto.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/Cellar/openssl@1.1/1.1.1k/lib/libssl.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_ERR_print_errors_fp", referenced from:
      _http_tcpip_inbound_initialize in http_tcpip_inbound.c.o
      _http_tcpip_inbound_tls_initialize in …
Run Code Online (Sandbox Code Playgroud)

c homebrew openssl pkg-config clion

1
推荐指数
1
解决办法
7879
查看次数

标签 统计

ag-grid ×1

c ×1

clion ×1

homebrew ×1

openssl ×1

pkg-config ×1