dojo实现autocomplete

    技术2022-05-18  10

    <html xmlns="http://www.w3.org/1999/xhtml">    <head>        <title>Struts 2 AJAX</title>        <sx:head theme="ajax" />    </head>    <body>       <h2>            Autocompleter        </h2>        <s:form action="autocompleterForm">            <tr>                <td class="tdLabel">                    <label class="label">                        AJAX Autocompleter:                    </label>                </td>                <td>                    <s:url id="dataUrl" value="/json/Autocompleter.action" />                    <sx:autocompleter theme="ajax" name="start" href="%{dataUrl}"                     loadOnTextChange="true" loadMinimumCount="1" indicator="indicator"                     autoComplete="false" showDownArrow="false" />                    <img id="indicator" src="" style="display:none" />               </td>            </tr>        </s:form>    </body></html>


    最新回复(0)