Department of Psychological & Brain Science, Cognitive Science Program, Indiana University, Bloomington, IN, USA,
Behav Res Methods. 2015 Mar;47(1):1-12. doi: 10.3758/s13428-014-0458-y.
Online experiments are growing in popularity, and the increasing sophistication of Web technology has made it possible to run complex behavioral experiments online using only a Web browser. Unlike with offline laboratory experiments, however, few tools exist to aid in the development of browser-based experiments. This makes the process of creating an experiment slow and challenging, particularly for researchers who lack a Web development background. This article introduces jsPsych, a JavaScript library for the development of Web-based experiments. jsPsych formalizes a way of describing experiments that is much simpler than writing the entire experiment from scratch. jsPsych then executes these descriptions automatically, handling the flow from one task to another. The jsPsych library is open-source and designed to be expanded by the research community. The project is available online at www.jspsych.org .
在线实验越来越受欢迎,网络技术的日益复杂使得仅使用网络浏览器即可在线运行复杂的行为实验成为可能。然而,与离线实验室实验不同,很少有工具可以帮助开发基于浏览器的实验。这使得创建实验的过程变得缓慢而具有挑战性,特别是对于那些缺乏网络开发背景的研究人员来说。本文介绍了 jsPsych,这是一个用于开发基于 Web 的实验的 JavaScript 库。jsPsych 形式化了一种描述实验的方法,比从头开始编写整个实验要简单得多。然后,jsPsych 自动执行这些描述,处理从一个任务到另一个任务的流程。jsPsych 库是开源的,并设计为可由研究社区扩展。该项目可在线获得,网址是 www.jspsych.org 。