Home > Web Front-end > JS Tutorial > JavaScript entry example source code case

JavaScript entry example source code case

巴扎黑
Release: 2017-06-27 09:20:19
Original
1631 people have browsed it

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="Scripts/common.js?1.1.11"></script>
</head>
<body>
    <div id="divFirst">
    </div>
    <div id="divSecond">
    </div>
    <div id="divThird">
    </div>
    <script type="text/javascript">
        $(&#39;divFirst&#39;).innerHTML = "<a href=&#39;http://www.baidu.com&#39;>Go to baidu</a>";
        updateHtml(&#39;divSecond&#39;,&#39;<input type="text" value="我是文本框"/>&#39;);
        updateText(&#39;divThird&#39;,&#39;<pre class="brush:php;toolbar:false">文本内容,不是HTML
'); writeHtml('同学,你好!'); writeP("我是段落内容"); writeTable(10, 3); writeHtml(getDateString()); writeHtml("
"); writeSelectList(['bmw', 'benz', 'audi']); writeList(['apple', 'banana', 'cat']);
  • apple
  • banana
  • cat
Copy after login


The above is the detailed content of JavaScript entry example source code case. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template