如果我有这样的javascript ES6类:
import $ from "jquery";
export class test {
constructor() {
this.es6 = 'yay';
}
writeLine(text){
console.log(text);
}
getTestData(){
writeLine('writeLine call'); // <-- can not call writeLine ??
$.get('/test', function(data){
console.log(data);
console.log(data.data);
this.es6 = data.data;
debugger
writeLine(data.data);
});
}
}
Run Code Online (Sandbox Code Playgroud)
从另一个文件中导入类并调用getTestData
System.import('app/classDefinition')
.then(function(classDefinitionModul) {
var test = new classDefinitionModul.test();
console.log(test.es6);
test.getTestData();
})
Run Code Online (Sandbox Code Playgroud)
我该如何调用方法writeLine
?
我有一个 CLR .NET dll 和 SQL 服务器。系统本地设置(Region/administrative/locallanaguagesettings)从 en-IN 更改为 en-US。但是用 Thread.CurrentThread.CurrentCulture 追踪的 CLR 中的文化仍然是 en-IN
选择@@Language 打印 englishUS
SQL 服务器从哪里为 CLR 文化选择文化?最后一个问题,如何通过系统设置 SQL CLR 程序集中使用的区域性来更改?
我想运行一个小例子,但它不起作用.HTML.
<body ng-app="angello">
<div ng-contoller="mainController">
<div class="span4 sidebar-content">
<h2> stories </h2>
<div ng-repeat="story in stories">
<h4> {{ story.title }} </h4>
<p> {{ story.description }} </p>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
脚本代码是:
angular.module('angello',[])
.controller('mainController', function( $scope ) {
$scope.stories = [
{title:'Story 00', description:'Description pending.'},
{title:'Story 01', description:'Description pending.'},
{title:'Story 02', description:'Description pending.'},
{title:'Story 03', description:'Description pending.'},
{title:'Story 04', description:'Description pending.'},
{title:'Story 05', description:'Description pending.'}];
});
Run Code Online (Sandbox Code Playgroud)
预计会列出故事,但只有{{story.title}} {{story.description}}标签.问题是什么?为什么这些故事没有列出?
我有一个Windows nano服务器,并尝试设置代理设置.nano服务器仅在命令模式下没有GUI.我在PowerShell中运行
netsh winhttp set proxy proxy-server="ipadress:8080"
Run Code Online (Sandbox Code Playgroud)
然后我有
ping www.google.de
Run Code Online (Sandbox Code Playgroud)
并且显示了谷歌的IP地址,因此存在一些连接.但是当我试着奔跑的时候
wget www.google.de
Run Code Online (Sandbox Code Playgroud)
我明白了
"Unable to connect to the remote server"
Run Code Online (Sandbox Code Playgroud)
然后我在PowerShell环境中设置了代理
set http_proxy="ipadress:8080" and https_proxy...
Run Code Online (Sandbox Code Playgroud)
但同样的问题.当我使用代理设置直接调用wget时,它可以工作:
wget 'http://www.google.de' -Proxy http://ipadress:8080
Run Code Online (Sandbox Code Playgroud)
如何才能wget
使用全局代理设置?或者设置没有正确设置?或者需要我安装一些Windows功能,它是否正常工作?
我wget
用来测试连接以后任何程序的Web请求应该工作.
angularjs ×1
clr ×1
culture ×1
ecmascript-6 ×1
javascript ×1
nano-server ×1
powershell ×1
proxy ×1
sql ×1
wget ×1
windows ×1