0
我使用emacs-request從網上獲取一些json數據。下面是我想知道的回調函數,如:success
如何可以訪問ARG1和ARG2一個例子如何從回調函數訪問其他參數
(defun test (arg1 arg2)
(request
"http://httpbin.org/get"
:params '(("key" . "value") ("key2" . "value2"))
:parser 'json-read
:success (cl-function
(lambda (&key data &allow-other-keys)
(message "I sent: %S" (assoc-default 'args data))))))
?