- 博客(11)
- 收藏
- 关注
转载 年,月 ,季节 下拉框
css: <style> .combo-title { padding-right: 5px } .combo-data > div { display: inline-block }</style>html: <div class="row"> &...
2017-08-27 09:57:00
228
转载 左连接与右连接,外连接与内连接
左:left joinselect * form tab1 left join tab2 on user_id==tab2.user_id where tab1.user_id=4意思:就是让tab1里的user_id为4的所有friend_id当作tab2里的user_id,在tab2里查找符合的数据即user_id=tab1.friend_id(一一查找)。左联是以左边...
2017-06-26 23:27:00
129
转载 git 恢复删去的东西, 以及在本地建个仓库,让远程也有这个仓库
前天删去了所有文件,现在找回来。1 git clone 仓库2 git log --since “2 days ago” 2天前的记录3转载于:https://www.cnblogs.com/S-Ekin/p/6695352.html
2017-04-11 19:48:00
131
转载 变量是玩法
function Foo() { getName = function () { console.log (1); }; return this; } Foo.getName = function () { console.log (2);}; Foo.prototype.getName = function () { console.log (3...
2017-03-31 23:30:00
122
转载 ng-repeat 循环时
<p ng-repeat=" item in [1,2,3,4,5]">会显示 1,2,3,4,5<p ng-repeat=" item in [1,2,3,4,5,4,3,2,1]">会报错angular 在遍历数组的时候,会给每一个内容加一个$$hashkey,用于区分是不是重复的内容,所以内容重复会报错的。但是可以不用$$hashkey标记识别,...
2017-03-22 15:21:00
173
转载 vue-router 路由与 angular-route
一些相同的地方和不一样的地方,更好的理解两个路由!在angular-route:*$rootScope 注册的根作用域,所有的控制器都可以用。问题1:angualr-routel 里点击对应的路由路径会执行两次,为什么?app.controller("postNewsController",function ($scope,$rootScope) { ...
2017-03-21 19:37:00
298
转载 git 上传代码与查看
第一次,一定要把clone的文件全部删去,虽然你打开看的时候没有,其实是隐藏了。、、、、、、、、如何显示隐藏的文件呢?上传好代码后,一定要写好 read.md。转载于:https://www.cnblogs.com/S-Ekin/p/6576349.html...
2017-03-18 21:59:00
227
转载 jsonp的跨域请求,怎样自己随便去请求一个网站上的数据?
解决问题?转载于:https://www.cnblogs.com/S-Ekin/p/6568922.html
2017-03-17 22:14:00
114
转载 写一个方法,里面传一个参数,让字符串 可以返回 这个参数的次数。
1:用怎样的函数写?2:怎样把这个字符串本身传进去?3:把得到的结果连起来成整体?1种 String.prototype.repeat=function(item){ var arr=[]; for(i=0;i<item;i++){ arr[i]=this.tostring;//这个this指的是谁,tostring把它变成了什么?} r...
2017-03-17 21:21:00
325
转载 方法调用
在标签元素上写事件名称:点击事件是 bindtap : <text bindtap="fun1"><text> 触摸事件绑定 bindtouchstart:<text bindtouchstart="fun1"><text>Page({data: {motto: 'Hello World',user...
2017-03-17 18:43:00
90
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅