找回密码
 快速注册
搜索
查看: 24|回复: 0

[MathJax] math.length 疑問

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2024-2-27 18:53 |阅读模式
github.com/mathjax/MathJax-src/blob/8565f9da973238e4c9571a86a4bc ... eX.ts#L211C1-L211C33
在findMathInString中,
  /**
   * Search a string for math delimited by one of the delimiter pairs,
   *   or by \begin{env}...\end{env}, or \eqref{...}, \ref{...}, \\, or \$.
   *
   * @param {ProtoItem[]} math  The array of proto math items located so far
   * @param {number} n          The index of the string being searched
   * @param {string} text       The string being searched
   */

有一行:
  1.         if (math.length === 2) {
复制代码
這一行是什麼意思?

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 15:45

Powered by Discuz!

× 快速回复 返回顶部 返回列表