当尝试通过 php require_once() 包含 jquery 库时,我发现调用 JQuery UI 的 .dialog() 组件会产生错误消息:
$("#dialog").dialog 不是函数
这对我来说似乎很奇怪,因为在检查 DOM 时,我看到预期的 html 标记被呈现为:
<link rel="stylesheet" href="/scripts/css/smoothness/jquery-ui-1.8.17.custom.css" type="text/css" />
有谁知道为什么通过 php 的 require_once/include_once 包含 html 片段会导致这个问题?