I want to understand the JavaScript code of the share button on Twitter.

Asked 2 years ago, Updated 2 years ago, 87 views

!function(d,s,id){
}( document, 'script', 'twitter-wjs');

This is part of Twitter's share button code.

Also, what happens if I write this in coffeescript?

javascript coffeescript

2022-09-30 19:54

1 Answers

1) It's a denial.Let the return value of the function be true be false and the return value be false be true.
 As @quesera2 points out, it seems to be used simply to evaluate functions.

2) This part is called by giving the function document, 'script', 'twitter-wjs' as arguments.

coffescript version test


2022-09-30 19:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.