發(fā)文章
發(fā)文工具
撰寫
網(wǎng)文摘手
文檔
視頻
思維導圖
隨筆
相冊
原創(chuàng)同步助手
其他工具
圖片轉(zhuǎn)文字
文件清理
AI助手
留言交流
<html><head><script language="javascript"> function test() { var str="123"; <!--document.form1.action="tu.jsp?bm=str";--> document.form1.action="tu.jsp?bm=<%=abc%>"; document.form1.submit(); }</script></head><body>
<%! String abc="58"; %>
<form name="form1"> <input type="submit" value="submit" onclick="test()"> </form>
</body></html>
來自: 七郎 > 《SQL語句.JS.等等小技巧》
0條評論
發(fā)表
請遵守用戶 評論公約
AJAXAnywhere 總結(jié)
ajaxanywhere 總結(jié):1,簡介。解決方法很簡單,把所有需要ajaxanywhere的servlet mapping配置成一個比較特殊的后綴,例如localServlet.aj這樣在web.xml中配置AjaxAnywhere過濾器的filer-mapping 增加...
js表單驗證控制代碼大全
8. 兩次輸入密碼是否相同 <FORM METHOD=POST ACTION=""> <input type="password" id="input1"> <input type="password" id="input2"...
ASP.NET中如何結(jié)合JS,在列表框中作多項選擇
Form1.lstSelectCategory.options[document.在添加程序中增加一行document.Form1.txtArrCategoryID.value += selOpt.value + "|";大刪除程序中也添加document.Form1.txtArrCategoryID.value ...
js子窗口和父窗口的數(shù)據(jù)傳遞和交互的應用
js子窗口和父窗口的數(shù)據(jù)傳遞和交互的應用js子窗口和父窗口的數(shù)據(jù)傳遞和交互的應用。<input type=”input” value=”" name=”input_tag” id = “input_tag” onKeyUp=”clearPreTagStyle()” ...
js正則驗證手機號碼有效性
js正則驗證手機號碼有效性。通過js正則驗證手機號碼的有效性,方法如下:function validatemobile(mobile) { if(mobile.length==0) { alert(''請輸入手機號碼!doc...
js中結(jié)合使用php
js中結(jié)合使用php js中結(jié)合使用php在寫js代碼時也可以插入php代碼:例子:<script language="javascript">function check_inv(){<?php if(count($_COOKIE[''cookieinv'&...
在ascx中使用js找不到對象問題解決
查看源碼得知.TextBox的ID,前面加上了<input name="QuickForumLogin1:txtUserName" type="text" id="QuickForumLogin1_txtUserName" style="width:95px;" ...
js 可行的print
JS內(nèi)置對象(2)
微信掃碼,在手機上查看選中內(nèi)容