首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

草,js闭包循环(自各儿留着看的)

2012-09-04 
草,js闭包循环(自己留着看的)(function(_note){??? ??? ??? ??? ??? ??? ??? ??? function xxx(){??? ???

草,js闭包循环(自己留着看的)

(function(_note){
??? ??? ??? ??? ??? ??? ??? ??? function xxx(){
??? ??? ??? ??? ??? ??? ??? ??? ??? //chrome端更新
??? ??? ??? ??? ??? ??? ??? ??? ??? if (ds.rows.length) {
??? //??? ??? ??? ??? ??? ??? ??? ??? ??? alert("note.opt=='2',更新...");
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? /*//更新desc
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? db.tx({name : 'update_desc',
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? id : note.lid,
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? data : note.content
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? }, function() {
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? });*/
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? //置更新tag=0
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? db.tx({name : 'update_tag',
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? id : _note.lid,
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? data : '0'
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ??? }, function() {
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? });
??? ??? ??? ??? ??? ??? ??? ??? ??? }else{
??? ??? ??? ??? ??? ??? ??? ??? ??? //其他端新增
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? alert("note.opt=='2',新增...");
??? ??? ??? ??? ??? ??? ??? ??? ??? }
??? ??? ??? ??? ??? ??? ??? ??? }
??? ??? ??? ??? ??? ??? ??? ??? db.tx({
??? ??? ??? ??? ??? ??? ??? ??? ??? name : 'load_note_by_noteid',
??? ??? ??? ??? ??? ??? ??? ??? ??? noteid : note.noteid
??? ??? ??? ??? ??? ??? ??? ??? }, function(tx, ds) {
??? ??? ??? ??? ??? ??? ??? ??? ??? xxx();
??? ??? ??? ??? ??? ??? ??? ??? });
??? ??? ??? ??? ??? ??? ??? })(note);

热点排行