1. parent.openDialog("child", "?page=fathercustName=txtEmployee");
創(chuàng)新互聯(lián)專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于成都網(wǎng)站制作、做網(wǎng)站、外貿(mào)營(yíng)銷網(wǎng)站建設(shè)、紅河網(wǎng)絡(luò)推廣、小程序設(shè)計(jì)、紅河網(wǎng)絡(luò)營(yíng)銷、紅河企業(yè)策劃、紅河品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運(yùn)營(yíng)等,從售前售中售后,我們都將竭誠(chéng)為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);創(chuàng)新互聯(lián)為所有大學(xué)生創(chuàng)業(yè)者提供紅河建站搭建服務(wù),24小時(shí)服務(wù)熱線:13518219792,官方網(wǎng)址:sd-ha.com
問號(hào)前面具體的頁面寫上不就行了。
或者直接用window.open()不也行嗎
2.寫一個(gè)函數(shù):
function quzhi(obj)
{
var name=$("#" + obj.id + " td").eq(2).text();
return name;
}
這就是取得name的值,obj是傳入一個(gè)tr
js:textobj.blur(function(){
var thisobj=$(this);
var idobj=nowtd.attr("id");//需要修改的字段名稱
var parentobj=thisobj.parent("td").parent("tr").children("td").children("#hid").val();//修改時(shí)需要判斷的條件id
var content=thisobj.val();//更改的內(nèi)容傳入數(shù)據(jù)庫
nowtd.html(content);
if(content!=""){
location.href='user2_jiangli_chaxun_src.php?a='+parentobj+'b='+content+'c='+idobj;}
});
php: $obj=$_GET['a'];//判斷時(shí)用的條件值
$obj1=str_replace(" ","",$_GET['b']);//更改后的值
$obj2=$_GET['c'];//更改的字段名
$obj3=$_GET['delobj'];//按下的刪除按鈕的值
$obj4=$_GET['nowid'];//當(dāng)前刪除按鈕所在行的id值,也是用來做條件查詢
if($obj1){
$sql="update reward set $obj2='$obj1' where id='$obj'";
mysql_query($sql);
}
每次執(zhí)行修改都會(huì)跳轉(zhuǎn)一次頁面,直接給本頁面?zhèn)髦挡挥胠ocation.href的方法
"確定": function(){
// 傳值至這里,改變指定的input text
// 假設(shè)你有個(gè)Input 的id是 'name', 你就可以這么寫:
$("#name").val("名字");
// 然后你可以點(diǎn)下確定按鈕,試試效果.
},
建議學(xué)習(xí)下 jquery ajax 部分,先給你個(gè)源碼看看
//訂單狀態(tài)
function?OrderConfirm(OrderID)?{
$.ajax({
type:?"POST",
url:?"/Booking/BookingInfo.aspx",
data:?"OrderConfirm=TrueOrderID="?+?OrderID,
success:?function(msg)?{
if?(msg?==?"success")?{
//msg?是你后臺(tái)傳的信息,可以傳你想要的信息
alert("信息確認(rèn)成功!");
}
else?{
$("#lblErrMsg").text(msg);
$("#lblErrMsg").show();
}
},
error:?function(msg)?{
alert("錯(cuò)誤");
}
});
}
后臺(tái) pageload 代碼
if?(Request["OrderConfirm"]?!=?null??Convert.ToBoolean(Request["OrderConfirm"]))
{
int?OrderID=?(Request["OrderID"]?==?null)???0?:?Convert.ToInt32(Request["OrderID"]);
string?strResult?=?String.Empty;
if?(OrderID!=?0)
{
try
{
//你的code
//這是你后臺(tái)傳給前臺(tái)的值
strResult?=?"success";
}
catch?(Exception?ex)
{
strResult?=?ex.Message;
}
}
Response.Clear();
Response.Write(strResult);
Response.End();
return;
}
可以通過url傳值(用js解析url參數(shù))
cookie也可以(用js操作cookie)
window.localStorage(用js存取) //同理也有其他的方法 比如sessionStorage
也可以通過服務(wù)端實(shí)現(xiàn)
當(dāng)前題目:jquery頁面?zhèn)髦?jquery傳參數(shù)的方法 調(diào)用
分享網(wǎng)址:http://sd-ha.com/article32/dsesppc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供、Google、小程序開發(fā)、做網(wǎng)站、面包屑導(dǎo)航、標(biāo)簽優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)