我正在尝试使用带有ajax加载的。
下面是我的代码:
clonedTemplate.find('[id^=detailsPhaseFinanceMinor_]').select2({
placeholder: "Select",
minimumInputLength: 1,
ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
type: 'POST',
我从"hello world“示例开始使用Ruby。您好,世界作品查找。我在试着让这件事生效:
GET /projects/192372431230306/tasks?opt_fields=id,assignee,due_on,name,notes&limit=10&completed_since=now
它在Asana API浏览器中的工作完全符合预期。
我在代码中使用了相同的URI:
uri = URI.parse("https://app.asana.com/api/1.0/projects/192372431230306/tasks?opt_fields