Memtransistors composed of 2D van der Waals (vdW) heterostructures are crucial for constructing artificial synaptic devices and realizing neuromorphic computing. The functional integration containing ultralow power, nonvolatile memory, and biomimetic synaptic behavior endows such devices with broad prospects. Here, we develop an optoelectronic memtransistor based on the WS