$ chown -R <$whoami>:admin xxx.app # 这个可以不要
$ chmod -R 775 xxx.app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo spctl --master-disable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1、知我者,谓我心忧,不知我者,谓我何求。(诗经王风黍离) | |
——了解我心情的人,认为我心中惆怅;不了解我心情的,还以为我呆在这儿有什么要求呢! | |
2、人而无仪,不死何为。(诗经风相鼠) | |
——为人却没有道德,不死还有什么意思。(如果做人可以不讲究仪表,那还不如死了呢! | |
3、言者无罪,闻者足戒。(诗经大序) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 驼峰转连词符 | |
const hyphenateRE = /([a-z\d])([A-Z])/g; | |
export function hyphenate( str ) { | |
return str.replace( hyphenateRE, '$1-$2' ).toLowerCase(); | |
} | |
// 连词符转成驼峰 | |
const camelCaseRE = /-(\w)/g; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import is from 'whatitis'; | |
import now from 'performance-now'; | |
const root = typeof window === 'undefined' ? global : window; | |
const vendors = [ 'moz', 'webkit' ]; | |
const suffix = 'AnimationFrame'; | |
let raf = root[`request${suffix}`]; | |
let caf = root[`cancel${suffix}`] || root[`cancelRequest${suffix}`]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
text-align: center; | |
} | |
img { | |
max-width: 100%; | |
width: 600px; | |
} | |
img { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.open是javascript函数,该函数的作用是打开一个新窗口或这改变原来的窗口,如果你直接在js中调用window.open()函数去打开一个新窗口,浏览器会拦截你,那么如何避免呢。 | |
注意,只有直接使用js调用 window.open(url); 打开新窗口时,才会被拦截,如果是改变原理额窗口:window.open(url,'_self'); 则不会被拦截。 | |
那么 js调用 window.open(url); 打开新窗口,如何才能不会浏览器拦截呢? | |
浏览器会拦截你,是认为你将弹出广告等用户不想得到的窗体,所以如果不想让浏览器拦截你,你可以将这个函数改为用户点击时触发,这样浏览器就认为是用户想访问这个页面,而不是你直接弹出给用户。 | |
0)最好的解决方法: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FileSaver.js | |
* A saveAs() FileSaver implementation. | |
* 1.3.2 | |
* 2016-06-16 18:25:19 | |
* | |
* By Eli Grey, http://eligrey.com | |
* License: MIT | |
* See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md | |
*/ | |
NewerOlder