小编Mus*_*gar的帖子

JavaScript正则表达式"无重复"错误

我试图获取令牌代码来为Minic语言进行词法分析时出现此错误!

document.writeln("1,2 3=()9$86,7".split(/,| |=|$|/));

document.writeln("<br>");
document.writeln("int sum ( int x , int y ) { int z = x + y ; }");
document.writeln("<br>");
document.writeln("int sum ( int x , int y ) { int z = x + y ; }".split(/,|*|-|+|=|<|>|!|&|,|/));
Run Code Online (Sandbox Code Playgroud)

我在调试器上得到最后一行的错误Uncaught SyntaxError:无效的正则表达式:没有什么可重复!!

javascript regex

4
推荐指数
1
解决办法
2万
查看次数

-ssass-debug-info at my css

我正在使用css编写代码,我发现每个类都在它之前编写

@media -sass-debug-info{filename{font-family:file\:\/\/C\:\/www\/w-balls-html\/html_source\/lib\/_master\.scss}line{font-family:\00003640}} 
Run Code Online (Sandbox Code Playgroud)

我在saas的文档中找到了一些关于它的东西 - ({#to_s => #to_s})debug_info

 A hash that will be associated with this rule in the CSS document if the :debug_info option is enabled. This data is used by e.g. the FireSass Firebug extension.

 Returns:({#to_s => #to_s}) [debug-info-documentation][1]
Run Code Online (Sandbox Code Playgroud)

但无法知道如何调试它或知道如何转换为正常的@media

@media all and (max-width: 699px) and (min-width: 520px))
Run Code Online (Sandbox Code Playgroud)

debugging html5 css3

4
推荐指数
1
解决办法
2322
查看次数

标签 统计

css3 ×1

debugging ×1

html5 ×1

javascript ×1

regex ×1