我在短时间内使用Polymer,现在我想获得纸张输入的价值.我不知道怎么能这样做.这不起作用:
this.form.password
Run Code Online (Sandbox Code Playgroud)
我想得到这个字段的价值:
<paper-input label="Password" type="password" id="password" name="password" size="25" value=""></paper-input>
Run Code Online (Sandbox Code Playgroud)
我还想获得用于提交电子邮件输入的输入:
<paper-input label="Login" id="email" name="email" size="25" value=""></paper-input>
Run Code Online (Sandbox Code Playgroud)
提交我正在使用:
<paper-button raised value="Login" type="submit" onclick="formhash(this.form, this.form.password);">Login</paper-button>
Run Code Online (Sandbox Code Playgroud)
使用正常输入字段可以正常工作.
由于有时我将auth0与express一起使用。但是现在我有一个问题。这是我的代码的样子:
var passport = require('passport');
var Auth0Strategy = require('passport-auth0');
var strategy = new Auth0Strategy({
domain: '',
clientID: '',
clientSecret: '',
callbackURL: '/loginapi/callback'
}, function (accessToken, refreshToken, extraParams, profile, done) {
// accessToken is the token to call Auth0 API (not needed in the most cases)
// extraParams.id_token has the JSON Web Token
// profile has all the information from the user
return done(null, profile);
});
passport.use(strategy);
// This is not a best practice, but we want to keep things simple …Run Code Online (Sandbox Code Playgroud)在页面上工作了几个月后,我注意到在基于Webkit的浏览器中有一个奇怪的行为。我用这里要求的技术实现了输入元素。创建具有特定度数的四边形在Webkit之外的所有浏览器中,一切正常。
我搜索这种确切的行为,并试图找到现有的解决方法。建议修复的示例:
@supports (-webkit-overflow-scrolling: touch) {
transform: translate3d(0, 0, 0);
}
Run Code Online (Sandbox Code Playgroud)
但是,这不起作用。
我创建了一个有问题的故障项目:https : //glitch.com/~safari-bug-overflow
但是,我也创建了更简单的示例:
<div>
<div class="wrapper">
<div class="background"></div>
<div class="content">
<h1>
Test
</h1>
<h1>
Test
</h1>
<h1>
Test
</h1>
<h1>Test</h1>
</div>
</div>
</div>
<style>
.background {
position: absolute;
transform: rotateX(58.6297041833deg) rotate(45deg);
background-color: green;
top: 96.619312px;
left: 3.4641016151px;
transform-origin: right top;
border-radius: 100px;
width: 500px;
height: 500px;
}
.wrapper {
position: releative;
}
.content {
position: relative;
}
</style>
Run Code Online (Sandbox Code Playgroud)
这是大多数浏览器的外观:

这是在基于Webkit的浏览器中的外观

现在,我需要找到解决该问题的方法,因为我预计在不久的将来不会有任何修复。我什至不确定这是Webkit中的错误还是CSS中的错误。我认为它是webkit,因为它可以在所有其他浏览器中使用。
我发现了一个WebKit错误报告:https ://bugs.webkit.org/show_bug.cgi?id …
我有以下输入文件:
{
"dic": {
"a": "",
"b": "",
"c": "",
"d": ""
},
"remove": {
"b": true,
"c": false,
"d": true
}
}
Run Code Online (Sandbox Code Playgroud)
我想用 jq 删除字典中的所有元素,这些元素dic也在字典中remove,值为 true。
这将是输出:
{
"dic": {
"a": "",
"c": ""
},
"remove": {
"b": true,
"c": false,
"d": true
}
}
Run Code Online (Sandbox Code Playgroud)
我不知道该怎么做。我首先需要清理removedic 并只获取值为 true 的键。然后我需要以某种方式只从dic.