## 测试页面
## 页面加载阶段
## 调试&&总结
1、页面加载完毕进行到解析阶段时,就会调度JSC执行以上的js的代码,当用户真正点击的button时,
不会再执行以上解析操作,而是runJavascriptAlert()操作
<html>
<head>
<title>Test-JSC</title>
<head>
<script>
function on_click()
{
alert("hello");
}
</script>
</head>
</head>
<body>
<button οnclick="on_click()">Click</button>
</body>
</html>
## 页面加载阶段
JSC::evaluate(exec, source, thisValue, exception);
JSValue JSMainThreadExecState::evaluate(exec, jsSourceCode, shell, &evaluationException);
ScriptValue ScriptController::evaluateInWorld(const ScriptSourceCode& sourceCode, DOMWrapperWorld* world)
ScriptController::evaluate(const WebCore::ScriptSourceCode & sourceCode)
ScriptElement::executeScript()
ScriptElement::prepareScript()
HTMLDocumentParser::runScriptsForPausedTreeBuilder()
HTMLDocumentParser::canTakeNextToken()
HTMLDocumentParser::pumpTokenizerIfPossible()
DecodedDataDocumentParser::appendBytes()
DocumentWriter::addData(const char * str, int len=0, bool flush=true)
DocumentWriter::endIfNotLoadingMainResource()
DocumentWriter::end()
## 调试&&总结
1、页面加载完毕进行到解析阶段时,就会调度JSC执行以上的js的代码,当用户真正点击的button时,
不会再执行以上解析操作,而是runJavascriptAlert()操作