更新到chrome 35后,开发工具中的自动完成功能不起作用.这只是我的问题吗?
检查窗口和Mac,所有工作..
有许多与此名称同名的问题,但我没有找到解决方案.
MasterPage.master:
<div id="dateShow">
<asp:Label ID="lblDateShow" runat="server"></asp:Label>
</div>
Run Code Online (Sandbox Code Playgroud)
MasterPage.master.cs:
protected void Page_Load(object sender, EventArgs e)
{
lblDateShow.Text = DateTime.Now.ToShortDateString();
}
Run Code Online (Sandbox Code Playgroud)
它发生在构建并向我显示错误,但是如果我在没有构建的情况下运行(在运行之前 - >没有构建),它会向我显示日期.它只发生在包含我要添加的所有控件的母版页中,在其他页面上都可以正常工作.可能是什么问题呢?
错误消息是:
错误1当前上下文中不存在名称"lblDateShow"
长期描述:
警告2"c:\ Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\thegame\6da1e5d1\9152b07\App_Web_tmu2ya5i.4.cs"中的"MasterPage"类型与导入的类型"MasterPage"冲突在'c:\ Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\thegame\6da1e5d1\9152b07\App_Web_masterpage.master.cdcab7d2.k9aa16y-.dll'中.使用'c:\ Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\thegame\6da1e5d1\9152b07\App_Web_tmu2ya5i.4.cs'中定义的类型.c:\ Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\thegame\6da1e5d1\9152b07\App_Web_tmu2ya5i.4.cs
我试图删除临时文件,没有帮助..
UPD我解决了这个问题.我有另一个masterpage2.master,不知怎的,他做了所有的问题.当我创建标签或其他控件时,他在第二个母版页中声明,我不知道它是怎么回事))
从 URL 解析的查询,例如:
?year=2014&cat=sonny
Run Code Online (Sandbox Code Playgroud)
或者它可以是
?year=2014&id=223&something=high&cat=sonny
Run Code Online (Sandbox Code Playgroud)
我可以
Model.find({year: 2014}).where('cat').equals('sonny')
Run Code Online (Sandbox Code Playgroud)
但是如果有第二个例子呢?我怎样才能让它动态?
尝试使反应与webpack一起工作,但在dev工具控制台中获得错误"app.js:105 Uncaught TypeError:(0,_reactDom2.default)不是函数"
文件webpack.config.js:
module.exports = {
entry: [
__dirname + '/assets/react/pages/app.js'
],
output: {
path: __dirname + '/public/z_output/',
filename: 'app.js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['react', 'es2015']
}
}
]
}
};
Run Code Online (Sandbox Code Playgroud)
文件app.js:
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
render(){
return(
<h1>aa</h1>
)
}
}
ReactDOM(<App />, document.getElementById('app'));
Run Code Online (Sandbox Code Playgroud)
UPDATE Package.json添加了File package.json:
{
"name": "kioe",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "node …Run Code Online (Sandbox Code Playgroud) 我尝试从元素数组中获取索引.
var arr = document.getElementsByClassName('class'); //3 elements
console.log(arr);
output// [div.class.selected, div.class, div.class, item: function, namedItem: function]
var selected = document.getElementsByClassName('selected');
var selected_id = arr.indexOf(selected[0]);
Run Code Online (Sandbox Code Playgroud)
最后一行代码给出了一个错误Uncaught TypeError: undefined is not a function.我也尝试添加toString()和搜索,但同样的错误.
网站使用opencart cms,启用了SEO网址,因此.htaccess看起来:
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Run Code Online (Sandbox Code Playgroud)
一切都很完美,但我想将301重定向从非www添加到www,所以我补充说:
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [R=301,L]
Run Code Online (Sandbox Code Playgroud)
它工作,但当我尝试重定向链接与类别或产品时,它添加"index.php?route ="
例:
"www.example.com/cats",如果我尝试没有"www"的"example.com/cats",链接会显示www.example.com/index.php吗?route = cats
chart: {
events: {
selection: function (event) {
event.preventDefault();
event.xAxis[0].axis.chart.series[0].points.forEach(function (point) {
point.select(true, true);
})
}
},
zoomType: 'x'
},
Run Code Online (Sandbox Code Playgroud)
示例在这里,但我刚刚选择了这些点.
图表自动设置父母父母身高的全高。Totaly 忽略了他父母的身高。
网址:
<div class="wrapper">
<div class="huj2">
<div class="huj">
bla bla
</div>
<div class="huj">
<div id="ChartContainer2">
//Chart is here
</div>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
#ChartContainer2 {
width: 100%;
}
.huj {
height: 50%;
position: relative;
}
.huj2 {
height: 100%;
}
.wrapper {
position: fixed;
height: 100%;
width: 100%;
}
Run Code Online (Sandbox Code Playgroud)