Published
Edited
May 31, 2021
Insert cell
hello = md`# test: jquery ${name}`
Insert cell
name = 'world'
Insert cell
# 测试jquery,中英文间无空格,显得很挤
Insert cell
jqesm = (await import("https://cdn.skypack.dev/jquery")).default
Insert cell
jqesm("body")
Insert cell
jqesm("body").css("background-color", "beige")
Insert cell
- 细节记录
- 控制台获取不到`jQuery`对象,说明没有挂载到`window`
- 控制台能够获取到`jqesm`对象,是一颗dom子树,指向`jqesm = (await import("https://cdn.skypack.dev/jquery")).default`所在的CodeMirror编辑器的父元素
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more