摘要: //监听某个元素下新增元素事件 $("#photos").bind('DOMNodeInserted', function(e) { alert('element now contains: ' + $(e.target).html()); }); //监听某个元素里移除元素的事件 $("#phot 阅读全文
posted @ 2019-12-30 16:12 不知起什么名字 阅读(9555) 评论(0) 推荐(1) 编辑
摘要: 1.after() 在元素的后面插入内容 $(selector).after(content); 阅读全文
posted @ 2019-12-30 16:06 不知起什么名字 阅读(1888) 评论(0) 推荐(0) 编辑
摘要: $query = new Query(); $query->select('gs.*, g.goods_images, sa.attr_name, sa.is_default, sa.alias_sort')->from(GoodsSpec::tableName() . ' gs'); $query 阅读全文
posted @ 2019-12-21 11:40 不知起什么名字 阅读(888) 评论(0) 推荐(0) 编辑
摘要: var a="aaabbb" a= a.replace("aaa", "ccc") console.log(a) //a ="cccbbb" 阅读全文
posted @ 2019-12-10 14:05 不知起什么名字 阅读(760) 评论(0) 推荐(0) 编辑
摘要: pwd 阅读全文
posted @ 2019-11-20 11:16 不知起什么名字 阅读(3014) 评论(0) 推荐(1) 编辑
摘要: df -lk //单位为KB df -lm //单位为MB 阅读全文
posted @ 2019-11-20 11:12 不知起什么名字 阅读(113) 评论(0) 推荐(0) 编辑
摘要: du -h --max-depth=1 阅读全文
posted @ 2019-11-20 11:10 不知起什么名字 阅读(1377) 评论(0) 推荐(0) 编辑
摘要: 原因:1.$('#xxx') 或$('.xxx')不存在 2.$('#xxx')或$('.xxx')的值为空 阅读全文
posted @ 2019-11-20 09:23 不知起什么名字 阅读(964) 评论(0) 推荐(0) 编辑
摘要: c++11 允许声明一个变量或对象(object)而不需要指明其类型,只需说明它是auto。 1.如: auto i = 42; //i是整型 double f(); auto d=f(); //d是双精度类型 2.如果类型很长或表达式很复杂时,auto特别有用,如: vector<string> 阅读全文
posted @ 2019-11-19 22:42 不知起什么名字 阅读(491) 评论(0) 推荐(0) 编辑
摘要: console.log("start"); await new Promise(function(resolve, reject) { setTimeout(function(){ $('.tips-box').hide(); $('.tips-box').attr("date-id","1"); ... 阅读全文
posted @ 2019-11-19 11:58 不知起什么名字 阅读(225) 评论(0) 推荐(0) 编辑