Browse Source

update examples

v1.1.9 v1.1.6
Pandao 10 years ago
parent
commit
d0e58b42a0
  1. 2
      examples/form-get-value.html
  2. 1
      examples/php/post.php
  3. 2
      examples/use-zepto.html

2
examples/form-get-value.html

@ -12,7 +12,7 @@
<h1>表单取值</h1> <h1>表单取值</h1>
<p>Form get textarea value.</p> <p>Form get textarea value.</p>
</header> </header>
<form method="post" action="./php/post.php">
<form method="post" action="http://editormd.ipandao.com/php/post.php">
<div id="test-editormd"> <div id="test-editormd">
<textarea style="display:none;">####表单取值 <textarea style="display:none;">####表单取值

1
examples/php/post.php

@ -1,5 +1,6 @@
<?php <?php
header("Content-Type:text/html; charset=utf-8"); header("Content-Type:text/html; charset=utf-8");
header("Access-Control-Allow-Origin: *");
if (isset($_POST['submit'])) { if (isset($_POST['submit'])) {
echo "<pre>"; echo "<pre>";

2
examples/use-zepto.html

@ -23,7 +23,7 @@
<button id="show-toolbar-btn">显示工具栏</button> <button id="show-toolbar-btn">显示工具栏</button>
<button id="close-toolbar-btn">关闭工具栏</button> <button id="close-toolbar-btn">关闭工具栏</button>
</div> </div>
<form action="php/post.php" method="post">
<form action="http://editormd.ipandao.com/php/post.php" method="post">
<div class="editormd" id="test-editormd"> <div class="editormd" id="test-editormd">
<textarea>###Hello world!</textarea> <textarea>###Hello world!</textarea>
</div> </div>

Loading…
Cancel
Save