« first day (1719 days earlier)      last day (2383 days later) » 

1:35 AM
Is there a `JS` reason I can access outer loop counter inside inner loop if statement?

for(var i = 0; i < a.length; i++)
{
for(var j = 0; j < b.length; j++)
{
if(b[j] === '1' && b[i].value === '')
{
console.log(b[i].value) //empty
console.log(b[2].value) //expected value
}
}
}
 
1 message moved from JavaScript
1 message moved from JavaScript
 
 
4 hours later…
5:43 AM
76 messages moved from GMTs
 
 
3 hours later…
8:38 AM
take care @AshuKumar plz
 
posted on October 09, 2017 by kelunik

- Clean references correctly, so unused bodies aren't consumed and the connection is closed.

 
I have created this vue instance to call data from API

var httpMethods = new Vue({
methods: {
get(url, API, SID) {
this.$http.get(url + API + SID).then((response) => {
this.getdata = response.data
return this.getdata;
});
}
}
})`

`var app = new Vue({
el: '#app',
mounted: function () {

this.membersdata = httpMethods.get(webconfig.SiteUrl, webconfig.API.User.GetSocietyUsers, webconfig.Session.SocietyID);
this.appdata.SocietyMembers.Get = this.membersdata;
}
})
 
Anonymous
1 message moved from PHP
 
8:53 AM
1 message moved from JavaScript
 
 
4 hours later…
12:55 PM
this also does work
var id = 'https://drive.google.com/file/d/0B1JhcY6AtVZ3YUtmWXRsUVlDVkk/view'.match('/https?:\/\/(?:www\.)?(?:drive|docs)\.google\.com\/(?:file\/d\/|open\?id=)?([a-z0-9A-Z_-]+)(?:\/.+)?/is');
 
1 message moved from JavaScript
 
 
8 hours later…

« first day (1719 days earlier)      last day (2383 days later) »