President Trump, the same guy who compared certain Third World countries to sewage and has bemoaned global trade deals, got something close to a hero’s welcome last week at the World Economic Forum, an annual confab dedicated to solving problems like hunger and income inequality through decidedly anti-Trumpian, globalist solutions.

And the reason is simple: It’s hard to argue with success.

Sustained economic growth (a decent 2.6 percent GDP for the fourth quarter — and that’s before his tax cuts kick in), signs of higher wage growth (companies are falling over each other to hand out bonus checks to workers) and a roaring stock market (with the Dow heading close to 30,000) that even those predisposed to loathe Trump are finding a silver lining in the orange-tinted cloud.

The World Economic Forum is held in Davos, Switzerland — about as different from Trump Country as you can get. It features CEOs of multinational companies and top world leaders often discussing the same lame, quasi-socialist “solutions” that never work in the real world.

And yet, according to the people I spoke with, Trump dazzled most of the crowd both in his speech and in private meetings with a warmth and sophistication that doesn’t come through on his Twitter feed.

Amid the antisocial excesses of the president’s social-media presence, we often forget that he can be charming and persuasive — and, most important to his own career, a marketing wizard.

That was the Trump who showed up in Davos. He even said he’d apologize to British Prime Minister Theresa May for retweeting an anti-Muslim video from a far-right British group that she criticized him for and that strained relations between our two countries.

It’s not that Trump acted like a pushover — far from it — or even totally abandoned his nationalist approach to trade. But he did explain economic nationalism with both coherence and rationality.

In his speech to the conference, Trump said Washington “will no longer turn a blind eye” to predatory trade policies of other countries, but he also made a point to note: “America first does not mean America alone. When the United States grows, so does the world.”

Who could argue with that?

Not many people in Davos — or even Klaus Schwab, the conference founder and one of the leading globalists on the economic stage who told the president: “I’m aware that your strong leadership is open to misconceptions and biased interpretations.”

Nor could most people really argue with Trump’s economic record so far, which is the biggest reason why he was largely embraced by the crowd. After Trump’s speech, executives were quoted as saying they want to expand their business in America because finally it has a government that looks at business as an engine of growth and opportunity rather than something to be taxed to finance its welfare state.

Of course, not everyone in Davos was happy to see Trump. (Schwab’s remarks sparked some scattered boos.) Some attendees undoubtedly agree with Democrats who have been grousing that Trump is taking credit for an economic recovery that began under President Barack Obama, and that his tax cuts overwhelmingly favor corporations over the working class.

But many prominent Democrats in Davos, such as JP Morgan’s Jamie Dimon and Goldman Sachs’ Lloyd Blankfein, have been touting Trump’s successes in reversing the Obama-era tax hikes and regulatory squeeze on business that they believe slowed the recovery from the 2008 financial crisis and hurt American workers.

Dimon’s embrace of Trump is interesting. Only a few months ago, he was one of the CEOs to quit a presidential business advisory council in protest of Trump’s remarks addressing the neo-Nazi march in Charlottesville, Va. But before Davos, Dimon, according to my sources, privately met with Trump in Washington to express his support for Trump’s economic policies, which have resulted, at least in part, in JP Morgan expanding branches, hiring more workers and trying to lend more to small businesses.

Of course, Dimon knows, as we all do, that Trump is unpredictable. He sounded presidential in Davos, but he might tweet something nutty tomorrow. Or worse: Trump might incite a trade war (he recently imposed tariffs on some Chinese and South Korean products) that will lead to inflation and job losses.

But so far, he hasn’t, and the economic numbers speak for themselves.

It’s hard to argue with success.

Charles Gasparino is a Fox Business senior correspondent.