首页 > 代码库 > 工作笔记 02

工作笔记 02

$(function(){
var x = $("#ass").val();
alert("sss"+$.parseJSON(x).data.myAssetFundList[0].floatProfitLoss);

});
////////////////////////
$(function(){

$(‘.data-detail‘).click(function(){
var me = $(this),rowId=me.attr(‘rowId‘);
location.href = http://www.mamicode.com/‘mfundTypeSerial.fuiou?action=goDetail&rowId=‘+rowId;
});
$(‘.data-mod‘).click(function(){
var me = $(this),rowId=me.attr(‘rowId‘);
location.href = http://www.mamicode.com/‘mfundTypeSerial.fuiou?action=goMod&rowId=‘+rowId;
});


$(‘#addBtn‘).click(function(){
location.href = http://www.mamicode.com/‘mfundTypeSerial.fuiou?action=goAdd‘;
});


});
<a href =javascript: class="data-detail" rowID="${rowId}">
//////////////
var type = $(‘select option:selected‘).val();
//////
<select id="dwe" onchange="xxx()">
<option value="http://www.mamicode.com/1">1</option>
function xxx(){
var type = $(‘select option:selected‘).val();
${"#d"}.val(type)
}
<input class="hidden" name="d" id ="d" value="http://www.mamicode.com/${queryBean.id}">

 

工作笔记 02