当我执行时使用parenscript
(parenscript:ps (slot-value ($ "#mytextarea") 'selectionStart))
它产生了javascript
$('#mytextarea').selectionstart;
请注意,selectionStart现在selectionstart.它失去了大写的S Start!如何保持大写字母S?
说我有功能:
(defn foo [something & otherthings]
(println something)
(println otherthings))
Run Code Online (Sandbox Code Playgroud)
评估
(foo "ack" "moo" "boo")
Run Code Online (Sandbox Code Playgroud)
给我 :
ack
(moo boo)
Run Code Online (Sandbox Code Playgroud)
如果我想用列表调用foo怎么办?
(foo "ack" (list "moo" "boo"))
Run Code Online (Sandbox Code Playgroud)
得到
ack
(moo boo)
Run Code Online (Sandbox Code Playgroud)
代替
ack
((moo boo))
Run Code Online (Sandbox Code Playgroud)
有没有办法在不改变foo的情况下做到这一点?