延續此問題 (也不算是延續)
https://segmentfault.com/q/10...
我取到了值
var showto = e.currentTarget.dataset.to;
但我必須要讓他把值弄到這裡
$(document).ready(function(){
get_comment_*();
});
也就是米字星星 get_comment_
$(document).ready(function(){
get_comment_+"showto"();
});
但無法這樣做
請問該怎麼做才對?
謝謝!