<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>Inline Edit Box Test</title>
        <script type="text/javascript" src="js/dojo/dojo.js"
            djConfig=" parseOnLoad: true"></script>

        <script type="text/javascript">
            dojo.require("dijit.InlineEditBox");
        </script>
    </head>
<body>
    Dear <span dojoType="dijit.InlineEditBox" width="200px" autoSave="true" title="recipient name">John</span>
</body>
</html>



几行代码即可实现!