我想在console.log中打印引用输入用户名和输入密码的值.看我的表格:
<form>
<ion-list>
<ion-item>
<ion-label fixed>Username</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label fixed>Password</ion-label>
<ion-input type="password"></ion-input>
</ion-item>
<button ion-button color="secondary" clear full style="font-style: bold; text-align: center;">Forgot Password?</button>
<button ion-button color="secondary" type="submit" full>Login</button>
</ion-list>
</form>
Run Code Online (Sandbox Code Playgroud)
如何在单击登录按钮后在控制台中检索输入和打印值?
我最近将PHP 4.0脚本转换为PHP 5.6,同时将我的服务器从4.0升级到5.6
但是,$REMOTE_ADDRPHP脚本中的行现在没有返回值,因为服务器正在运行PHP 5.6并且我无法解决这个问题:
$EmailFooter="REFERENCE COMPUTER ADDRESS: ($REMOTE_ADDR)";
Run Code Online (Sandbox Code Playgroud) 伙计们,我想问我是否可以创建一个看起来像这样的枚举
export enum CompanyMemberTypeEnum {
DIRECTORS,
SHAREHOLDERS,
DIRECTORS_AND_SHAREHOLDERS
}
Run Code Online (Sandbox Code Playgroud)
CompanyMemberTypeEnum.DIRECTORS会回0吗?但是,如果我想创建一个可以获得这样的枚举字符串的函数
CompanyMemberTypeEnum.getList(CompanyMemberTypeEnum.DIRECTORS)
Run Code Online (Sandbox Code Playgroud)
将返回'董事'
在枚举文件中,这可能吗?
为什么这个代码在C++ 14甚至C++ 17下是不正确的?
template <typename T>
function<T(T, T)> ReturnLambda () {
return [] (T x, T y) { return x*y; };
// return [] (auto x, auto y) { return x*y; }; // also incorrect
}
int main() {
auto f = ReturnLambda();
cout << f(3, 4) << endl;
}
Run Code Online (Sandbox Code Playgroud) 我不小心在我的控制台中运行了以下命令.这是一个复制粘贴错误.
vim -> /etc/apache2/sites-available/25-xyz-https.conf.
Run Code Online (Sandbox Code Playgroud)
但之后我的25-xyz-https.conf被破坏了.尽管我恢复了文件只是好奇地了解发生了什么.
我开始使用graphql服务开发离子应用程序,但是我在节点模块中遇到了一些问题,我该如何解决呢?
[14:32:44] typescript: D:/ionic/node_modules/@types/graphql/subscription/subscribe.d.ts, line: 17
Cannot find name 'AsyncIterator'.
L16: subscribeFieldResolver?: GraphQLFieldResolver<any, any>
L17: ): AsyncIterator<ExecutionResult>;
[14:32:44] typescript: D:/ionic/node_modules/@types/graphql/subscription/subscribe.d.ts, line: 29
Cannot find name 'AsyncIterable'.
L28: fieldResolver?: GraphQLFieldResolver<any, any>
L29: ): AsyncIterable<any>;
Run Code Online (Sandbox Code Playgroud)
这是我的package.json
{
"name": "Test",
"author": "test,
"homepage": "http://test.com",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "2.4.8",
"@angular/compiler": "2.4.8",
"@angular/compiler-cli": "2.4.8",
"@angular/core": "2.4.8",
"@angular/forms": "2.4.8",
"@angular/http": "2.4.8",
"@angular/platform-browser": "2.4.8",
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/platform-server": "2.4.8",
"@ionic/storage": "^1.1.9", …Run Code Online (Sandbox Code Playgroud) 我试图得到一个表达式来测试一个字段是否为null并且处理为false
a=true
b=true
-------------
true
a=null
b=true
-------------
true
Run Code Online (Sandbox Code Playgroud)
但是当我执行时:
var a=true;
var b=true;
alert((a+b) == true); => false
Run Code Online (Sandbox Code Playgroud)
它返回false,我不明白.
var a=null;
var b=true;
alert((a+b) == true); => true
Run Code Online (Sandbox Code Playgroud) Google是否进行了简单的搜索:https: //www.google.com/search?q = advantages + of + ionic + lazy + loading
并没有真正找到延迟加载优点的详细描述。有人在乎解释吗?
我正在用离子开发应用程序。当加载页面 scrollToBottom 不起作用时。
Html 部分
<ion-content #content>
</ion-content>
Run Code Online (Sandbox Code Playgroud)
TS部分
@ViewChild(Content) content: Content;
ionViewDidLoad() {
console.log('ionViewDidLoad PersonalChatPage');
this.content.scrollToBottom();
}
Run Code Online (Sandbox Code Playgroud) import x = require('x')在es6中,这似乎是无效的语法,并且打字稿文档中没有明确的解释。